sinatra-rocketio 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/sinatra-rocketio/application.rb +3 -0
- data/lib/sinatra-rocketio/version.rb +1 -1
- metadata +1 -1
data/History.txt
CHANGED
@@ -19,6 +19,9 @@ module Sinatra
|
|
19
19
|
content_type 'application/javascript'
|
20
20
|
@js ||= ERB.new(Sinatra::RocketIO.javascript).result(binding)
|
21
21
|
end
|
22
|
+
app.routes["GET"].delete_if{|route|
|
23
|
+
"/cometio/cometio.js" =~ route[0] or "/websocketio/websocketio.js" =~ route[0]
|
24
|
+
}
|
22
25
|
Sinatra::RocketIO.emit :regist_events
|
23
26
|
end
|
24
27
|
end
|