From eac3d6bf0646ee73f54c118105616bd5206b47c1 Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Sat, 6 Feb 2021 17:05:41 +0000 Subject: [PATCH] fix pong timeout --- src/websocket-client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/websocket-client.ts b/src/websocket-client.ts index 08f239e..dd5cf1d 100644 --- a/src/websocket-client.ts +++ b/src/websocket-client.ts @@ -276,7 +276,7 @@ export class WebsocketClient extends EventEmitter { private clearPongTimer(wsKey: string) { const wsState = this.wsStore.get(wsKey); if (wsState?.activePongTimer) { - clearInterval(wsState.activePongTimer); + clearTimeout(wsState.activePongTimer); wsState.activePongTimer = undefined; } }