diff --git a/lib/client/socket.js b/lib/client/socket.js index e59a8438..600c45a2 100644 --- a/lib/client/socket.js +++ b/lib/client/socket.js @@ -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;