fix(dial): pass through errors from pull-ws onConnect

Not passing errors meant that failed websocket connections were being treated as successful dials.
This commit is contained in:
Jack Kleeman 2017-03-27 16:10:20 +01:00 committed by Friedel Ziegelmayer
parent c405f8d1fe
commit 8df8084ec7

View File

@ -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)