lib/websocket-client-simple/client.rb in websocket-client-simple-0.7.0 vs lib/websocket-client-simple/client.rb in websocket-client-simple-0.8.0
- old
+ new
@@ -29,9 +29,10 @@
@socket = ::OpenSSL::SSL::SSLSocket.new(@socket, ctx)
@socket.sync_close = true
@socket.hostname = uri.host
@socket.connect
end
+ ::WebSocket.should_raise = true
@handshake = ::WebSocket::Handshake::Client.new :url => url, :headers => options[:headers]
@handshaked = false
@pipe_broken = false
frame = ::WebSocket::Frame::Incoming::Client.new
@closed = false