From 8c47d2a2c4edf81ef688d23eeb480a544a8d7256 Mon Sep 17 00:00:00 2001 From: Evan Summers Date: Thu, 1 Aug 2024 13:25:48 +0200 Subject: [PATCH] fix: No longer has infinite websocket connect loop --- src/lib/AutoReconnectingWebsocket.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/AutoReconnectingWebsocket.ts b/src/lib/AutoReconnectingWebsocket.ts index e262c19..1c14d44 100644 --- a/src/lib/AutoReconnectingWebsocket.ts +++ b/src/lib/AutoReconnectingWebsocket.ts @@ -26,9 +26,8 @@ export class AutoReconnectingWebsocket extends ReconnectingWebSocket { if (this.opts.mock) { this.opts.mock.handleWebsocketConnection(this) } else { - this.reconnect() + origReconnect.apply(this) } - origReconnect.apply(this) } this.changeUrl(url)