Skip to content

Commit

Permalink
feat: remove the autoreconnect on ws loss
Browse files Browse the repository at this point in the history
  • Loading branch information
manatlan authored Sep 15, 2023
1 parent 3388316 commit 7c30e4e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions htagweb/appserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,14 @@ async def serve(self, request, obj ) -> HTMLResponse:
}
_WS_.onclose = function(evt) {
console.log("** WS disconnected, retry in (ms):",retryms)
console.log("** WS disconnected");
//console.log("** WS disconnected, retry in (ms):",retryms);
document.body.classList.add("htagoff");
setTimeout( function() {
connect();
retryms=retryms*2;
}, retryms);
//setTimeout( function() {
// connect();
// retryms=retryms*2;
//}, retryms);
};
}
connect();
Expand Down

0 comments on commit 7c30e4e

Please sign in to comment.