slight update to fix reconnections
This commit is contained in:
parent
995961749e
commit
c6b439bc88
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ class Localuser {
|
|||
this.ws = undefined;
|
||||
console.log("WebSocket closed with code " + event.code);
|
||||
if (
|
||||
(event.code > 1000 && event.code < 1016) ||
|
||||
(event.code > 1000 && event.code < 1016 && this.errorBackoff === 0) ||
|
||||
(wsCodesRetry.has(event.code) && this.errorBackoff === 0)
|
||||
) {
|
||||
this.errorBackoff++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue