CalculateAction
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user