fix(core): websocket reconnection

lol. lmao, even
This commit is contained in:
alina 🌸 2024-02-08 04:14:43 +03:00
parent 5d137a9125
commit a17604b623
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -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()