Skip to content

Commit a630114

Browse files
committed
Raise errors from WebSocket gem
1 parent 238dae2 commit a630114

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/websocket-client-simple/client.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def connect(url, options={})
3131
@socket.hostname = uri.host
3232
@socket.connect
3333
end
34+
::WebSocket.should_raise = true
3435
@handshake = ::WebSocket::Handshake::Client.new :url => url, :headers => options[:headers]
3536
@handshaked = false
3637
@pipe_broken = false

0 commit comments

Comments
 (0)