websocket-client 0.1.8 → 0.1.9

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/ietf_00.rb +9 -1
  2. metadata +3 -3
@@ -31,7 +31,15 @@ module WebSocketClient
31
31
  break if ( line.strip == '' )
32
32
  end
33
33
 
34
- challenge = readline( socket ).strip
34
+ begin
35
+ challenge = @socket.read( 16 )
36
+ puts "Challenge: #{challenge}"
37
+ readline( @socket )
38
+ puts "read"
39
+ rescue Exception=>e
40
+ puts e.message
41
+ puts e.backtrace
42
+ end
35
43
 
36
44
  puts "> challenge-response #{challenge}"
37
45
  if ( challenge == solution )
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: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 8
10
- version: 0.1.8
9
+ - 9
10
+ version: 0.1.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - The TorqueBox Team