celluloid-websocket 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/celluloid/io/rack_socket.rb +5 -0
- data/lib/celluloid/websocket.rb +1 -1
- data/lib/celluloid/websocket/rack.rb +1 -5
- data/lib/celluloid/websocket/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38412eb46cf2d31b4a97c740a83c35032e4acd20
|
4
|
+
data.tar.gz: 3b0f5f14039647e635f45e09db4db7da82c84d88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8729bcac7a29d74446d02aff47b6263a7c607a940e36acdcc8f33976e984b76d2a167ba9b1ad15a780b715db53c75a8070039ca488825eb6a8e9f9c41512eae7
|
7
|
+
data.tar.gz: 712fb6f81684df547d35697d75276c9dcfb85c8899e5945305ef062e20cb83c8e9f34101eb0ce14623c18e71f7ee6687bbc28a7269d576514dbdc929ff361b1f
|
data/lib/celluloid/websocket.rb
CHANGED
@@ -13,10 +13,6 @@ module Celluloid
|
|
13
13
|
end
|
14
14
|
|
15
15
|
lambda do |env|
|
16
|
-
# We need to create the pool in the first request
|
17
|
-
# because we might've been forked before.
|
18
|
-
@pool ||= pool(config)
|
19
|
-
|
20
16
|
if env['HTTP_UPGRADE'].nil? || env['HTTP_UPGRADE'].downcase != 'websocket'
|
21
17
|
return [400, {}, "No Upgrade header or Upgrade not for websocket."]
|
22
18
|
end
|
@@ -24,7 +20,7 @@ module Celluloid
|
|
24
20
|
env['rack.hijack'].call
|
25
21
|
socket = Celluloid::IO::RackSocket.new(env['rack.hijack_io'].to_io)
|
26
22
|
|
27
|
-
|
23
|
+
new(*config[:args]).async.initialize_websocket(env, socket)
|
28
24
|
[200,{},""]
|
29
25
|
end
|
30
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: celluloid-websocket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tinco Andringa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|