websocket-client 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/websocket_client/client.rb +5 -3
- metadata +3 -3
@@ -82,9 +82,11 @@ module WebSocketClient
|
|
82
82
|
@handler_thread = Thread.new(@socket) do |socket|
|
83
83
|
msg = ''
|
84
84
|
while ( ! socket.eof? )
|
85
|
-
c =
|
86
|
-
if (
|
87
|
-
c =
|
85
|
+
c = nil
|
86
|
+
if ( socket.respond_to?( :getbyte ) )
|
87
|
+
c = socket.getbyte
|
88
|
+
else
|
89
|
+
c = socket.getc
|
88
90
|
end
|
89
91
|
if ( c == 0x00 )
|
90
92
|
if ( @close_state == :half_closed )
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: websocket-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- The TorqueBox Team
|