CalculateAction

This commit is contained in:
ChK
2026-03-17 08:54:36 +01:00
parent aa8d3b82fb
commit ea5275d04e
4 changed files with 89 additions and 3 deletions

View File

@@ -93,9 +93,7 @@ function connectWss() {
function scheduleReconnect() {
wsState.reconnectAttempts += 1;
const base = 1000; // 1s
const max = 30000; // 30s
const delay = Math.min(max, base * Math.pow(2, wsState.reconnectAttempts));
const delay = 10000; // 10s
logAndBroadcast('info', `Reconnecting in ${Math.round(delay/1000)}s...`);
setTimeout(connectWss, delay);
}