mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(config) reconnectionDelay
This commit is contained in:
parent
d4f2308d77
commit
b965ae338c
1 changed files with 3 additions and 3 deletions
|
|
@ -69,11 +69,11 @@ function getHost() {
|
|||
function initSocket() {
|
||||
const href = getHost();
|
||||
const prefix = CloudCmd.PREFIX;
|
||||
const FIVE_SECONDS = 5000;
|
||||
const ONE_MINUTE = 60 * 1000;
|
||||
|
||||
const socket = io.connect(href + prefix + '/config', {
|
||||
'max reconnection attempts' : Math.pow(2, 32),
|
||||
'reconnection limit' : FIVE_SECONDS,
|
||||
reconnectionAttempts: Infinity,
|
||||
reconnectionDelay: ONE_MINUTE,
|
||||
path: prefix + '/socket.io'
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue