feature(socket) connect: add reconnect limit: 5 seconds

This commit is contained in:
coderaiser 2013-10-29 12:52:56 +00:00
parent 89357e7a47
commit 0c00458ac3

View file

@ -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;