websocket-client 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/websocket_client/client.rb +3 -0
  2. metadata +3 -3
@@ -83,6 +83,9 @@ module WebSocketClient
83
83
  msg = ''
84
84
  while ( ! socket.eof? )
85
85
  c = socket.getc
86
+ if ( ! ( Fixnum === c ) )
87
+ c = c.bytes.to_a.first
88
+ end
86
89
  if ( c == 0x00 )
87
90
  if ( @close_state == :half_closed )
88
91
  socket.close
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: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - The TorqueBox Team