fix pong timeout
This commit is contained in:
@@ -276,7 +276,7 @@ export class WebsocketClient extends EventEmitter {
|
|||||||
private clearPongTimer(wsKey: string) {
|
private clearPongTimer(wsKey: string) {
|
||||||
const wsState = this.wsStore.get(wsKey);
|
const wsState = this.wsStore.get(wsKey);
|
||||||
if (wsState?.activePongTimer) {
|
if (wsState?.activePongTimer) {
|
||||||
clearInterval(wsState.activePongTimer);
|
clearTimeout(wsState.activePongTimer);
|
||||||
wsState.activePongTimer = undefined;
|
wsState.activePongTimer = undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user