Skip to content

Instantly share code, notes, and snippets.

@zipkid
Last active August 29, 2015 14:13
Show Gist options
  • Save zipkid/fb3743fc4f7a0c8b2dc2 to your computer and use it in GitHub Desktop.
Save zipkid/fb3743fc4f7a0c8b2dc2 to your computer and use it in GitHub Desktop.
Ruby 1.8.7
websocket-driver (0.5.1)
websocket-extensions (0.1.1)
"HTTP/1.1 101 Switching Protocols\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: <hash/>\r\n\r\n"
"\201\020{\"type\":\"hello\"}"
/usr/lib/ruby/gems/1.8/gems/websocket-driver-0.5.1/lib/websocket/driver/hybi/stream_reader.rb:19:in `read': undefined method `byteslice' for "\201\020{\"type\":\"hello\"}":String (NoMethodError)
Is there a way to make This above being read the same way as below?
Ruby 2.1.3
websocket-driver (0.5.1)
websocket-extensions (0.1.1)
"HTTP/1.1 101 Switching Protocols\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: <hash/>\r\n\r\n"
"\x81\x10{\"type\":\"hello\"}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment