Reverted 10 msec wait to prevent sys resources flooding on retries
This commit is contained in:
parent
ce5db9a9c6
commit
c81e969097
1 changed files with 1 additions and 2 deletions
|
@ -33,8 +33,7 @@ $(document).ready(function() {
|
||||||
console.log('Websocket closed, code: ' + event.code);
|
console.log('Websocket closed, code: ' + event.code);
|
||||||
websocketReconnectInterval = setInterval(function() {
|
websocketReconnectInterval = setInterval(function() {
|
||||||
initWebsocket();
|
initWebsocket();
|
||||||
}, event.code == 1000 ? 10 : 5000); // Reconnect immediately in case of normal websocket closure
|
}, 5000);
|
||||||
// otherwise wait 5 seconds
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue