From a821c33364541c3e04f53d03b223bef67ab75834 Mon Sep 17 00:00:00 2001 From: David Dias Date: Tue, 8 Nov 2016 17:20:14 +0000 Subject: [PATCH] fix: onConnect does not follow callback pattern (#36) --- package.json | 2 +- src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)