fix(core): websocket reconnection
lol. lmao, even
This commit is contained in:
parent
5d137a9125
commit
a17604b623
1 changed files with 2 additions and 2 deletions
|
@ -123,9 +123,9 @@ export abstract class BaseWebSocketTransport extends EventEmitter implements ITe
|
|||
|
||||
close(): void {
|
||||
if (this._state === TransportState.Idle) return
|
||||
this.log.info('close')
|
||||
this.log.info('connection closed')
|
||||
|
||||
this.emit('connection closed')
|
||||
this.emit('close')
|
||||
this._state = TransportState.Idle
|
||||
this._socket!.removeEventListener('close', this.close)
|
||||
this._socket!.close()
|
||||
|
|
Loading…
Reference in a new issue