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

View file

@ -47,6 +47,7 @@ export class MessageContainer extends LitElement {
this.messageSocket = new WebSocket(wsUrl); this.messageSocket = new WebSocket(wsUrl);
this.messageSocket.addEventListener("open", () => { this.messageSocket.addEventListener("open", () => {
console.debug(`authentik/messages: connected to ${wsUrl}`); console.debug(`authentik/messages: connected to ${wsUrl}`);
this.retryDelay = 200;
}); });
this.messageSocket.addEventListener("close", (e) => { this.messageSocket.addEventListener("close", (e) => {
console.debug(`authentik/messages: closed ws connection: ${e}`); console.debug(`authentik/messages: closed ws connection: ${e}`);