Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
fix(dial): pass through errors from pull-ws onConnect
Browse files Browse the repository at this point in the history
Not passing errors meant that failed websocket connections were being treated as successful dials.
  • Loading branch information
jackkleeman authored and dignifiedquire committed Mar 27, 2017
1 parent c405f8d commit 8df8084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class WebSockets {
log('dialing %s', url)
const socket = connect(url, {
binary: true,
onConnect: () => callback()
onConnect: (err) => callback(err)
})

const conn = new Connection(socket)
Expand Down

0 comments on commit 8df8084

Please sign in to comment.