From 0993d5ce4a4be97e0a2064a64374356e284cbbb1 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 19 Feb 2021 17:10:16 +0100 Subject: [PATCH] web: reset retryDelay for WS connection after successful connect --- web/src/elements/messages/MessageContainer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/elements/messages/MessageContainer.ts b/web/src/elements/messages/MessageContainer.ts index 4545a9f74..319640cf8 100644 --- a/web/src/elements/messages/MessageContainer.ts +++ b/web/src/elements/messages/MessageContainer.ts @@ -47,6 +47,7 @@ export class MessageContainer extends LitElement { this.messageSocket = new WebSocket(wsUrl); this.messageSocket.addEventListener("open", () => { console.debug(`authentik/messages: connected to ${wsUrl}`); + this.retryDelay = 200; }); this.messageSocket.addEventListener("close", (e) => { console.debug(`authentik/messages: closed ws connection: ${e}`);