lib/sinatra/websocketio.rb in sinatra-websocketio-0.0.6 vs lib/sinatra/websocketio.rb in sinatra-websocketio-0.1.0

- old
+ new

@@ -3,11 +3,16 @@ require 'json' require 'digest/md5' require 'event_emitter' require 'sinatra/streaming' require File.expand_path '../sinatra-websocketio/version', File.dirname(__FILE__) +require File.expand_path '../sinatra-websocketio/helpers', File.dirname(__FILE__) require File.expand_path '../sinatra-websocketio/options', File.dirname(__FILE__) require File.expand_path '../sinatra-websocketio/websocketio', File.dirname(__FILE__) require File.expand_path '../sinatra-websocketio/application', File.dirname(__FILE__) -Sinatra.register Sinatra::WebSocketIO -WebSocketIO.start +module Sinatra + module WebSocketIO + end + register WebSocketIO +end +Sinatra::WebSocketIO.start