web: reset retryDelay for WS connection after successful connect

This commit is contained in:
Jens Langhammer 2021-02-19 17:10:16 +01:00
parent 38bd05867d
commit 0993d5ce4a
1 changed files with 1 additions and 0 deletions

View File

@ -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}`);