sinatra-websocketio 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +4 -0
- data/lib/sinatra-websocketio/version.rb +1 -1
- data/lib/sinatra-websocketio/websocketio.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fc55e3907609bd895b48c19fb729e0f736df89b
|
4
|
+
data.tar.gz: 481b752107069ec050ae664ab3edf9d3afa7ed6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ac10c0e82d00f7fa63159e21752d766d970712e3b4659eb362079628939a832a37e1b1d46517f02efe2ef302fd83b0db655b41300ec9bed509334edd2b61bab
|
7
|
+
data.tar.gz: 39b50ff3fa9e6e18fe24c16e328167d090ec0dc2a1b79864217a13583e528cf84c1a9edeac9e3cf01e70d3b33176fb077ffd3f5652992ccda971aa206eae4382
|
data/History.txt
CHANGED
@@ -15,7 +15,7 @@ module Sinatra
|
|
15
15
|
end
|
16
16
|
puts "Sinatra::WebSocketIO.start port:#{options[:port]}"
|
17
17
|
EM::WebSocket.run :host => "0.0.0.0", :port => options[:port] do |ws|
|
18
|
-
ws.onopen do |handshake
|
18
|
+
ws.onopen do |handshake|
|
19
19
|
params = parse_handshake_params handshake.path
|
20
20
|
remote_addr = Socket.unpack_sockaddr_in(ws.get_peername)[1]
|
21
21
|
session_id = params[:session] || create_session(remote_addr)
|