diff --git a/package.json b/package.json index 766fb5e..8397325 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/index.js b/src/index.js index 677dfdf..128f6e1 100644 --- a/src/index.js +++ b/src/index.js @@ -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)