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; } }