0.2.27 fix initial success handler that had the old event

master
David Kebler 2019-12-08 14:52:46 -08:00
parent ba112c484e
commit d7fc89cafb
2 changed files with 2 additions and 2 deletions

View File

@ -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": {

View File

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