diff --git a/package.json b/package.json index 87d5097..fc16297 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@uci/socket", - "version": "0.2.26", + "version": "0.2.27", "description": "JSON packet intra(named)/inter(TCP) host communication over socket", "main": "src", "scripts": { diff --git a/src/consumer.js b/src/consumer.js index c52691f..aea66c3 100644 --- a/src/consumer.js +++ b/src/consumer.js @@ -119,7 +119,7 @@ class SocketConsumer extends Socket { console.log('initial success', ev.state) if (ev.state === 'connected') { clearTimeout(initTimeout) - this.removeListener('connection',successHandler) + this.removeListener('connection:socket',successHandler) this.log('info','initial connection successfull') resolve({opts: this.opts, msg: 'initial connection successfull'}) }