Skip to content

Commit

Permalink
Merge pull request #25 from jlaffaye/raise-errors
Browse files Browse the repository at this point in the history
Raise errors from WebSocket gem
  • Loading branch information
unasuke authored Aug 9, 2023
2 parents 238dae2 + a630114 commit 281a61c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/websocket-client-simple/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def connect(url, options={})
@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
Expand Down

0 comments on commit 281a61c

Please sign in to comment.