0.2.27 fix initial success handler that had the old event
This commit is contained in:
parent
ba112c484e
commit
d7fc89cafb
2 changed files with 2 additions and 2 deletions
|
@ -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": {
|
||||
|
|
|
@ -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'})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue