mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-24 00:21:18 +00:00
feature(socket) connect: add reconnect limit: 5 seconds
This commit is contained in:
parent
89357e7a47
commit
0c00458ac3
1 changed files with 4 additions and 1 deletions
|
|
@ -16,8 +16,11 @@ var CloudCmd, Util, DOM, io;
|
|||
});
|
||||
|
||||
function connect() {
|
||||
var FIVE_SECONDS = 5000;
|
||||
|
||||
socket = io.connect(CloudCmd.HOST, {
|
||||
'max reconnection attempts' : Math.pow(2, 32)
|
||||
'max reconnection attempts' : Math.pow(2, 32),
|
||||
'reconnection limit' : FIVE_SECONDS
|
||||
});
|
||||
|
||||
CloudCmd.Socket = socket;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue