fix: onConnect does not follow callback pattern (#36)

This commit is contained in:
David Dias 2016-11-08 17:20:14 +00:00 committed by GitHub
parent ebce595f21
commit a821c33364
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@
"pull-ws": "^3.2.8"
},
"devDependencies": {
"aegir": "^9.0.1",
"aegir": "^9.1.1",
"chai": "^3.5.0",
"gulp": "^3.9.1",
"interface-transport": "^0.3.3",

View File

@ -26,7 +26,7 @@ module.exports = class WebSockets {
log('dialing %s', url)
const socket = connect(url, {
binary: true,
onConnect: callback
onConnect: () => callback
})
const conn = new Connection(socket)