Skip to content

Commit 281a61c

Browse files
authored
Merge pull request #25 from jlaffaye/raise-errors
Raise errors from WebSocket gem
2 parents 238dae2 + a630114 commit 281a61c

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)