From b965ae338c3a17d0086358d4247478223697002e Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 16 Aug 2018 22:48:48 +0300 Subject: [PATCH] chore(config) reconnectionDelay --- client/modules/config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/modules/config.js b/client/modules/config.js index 69b3263c..59dfd5e2 100644 --- a/client/modules/config.js +++ b/client/modules/config.js @@ -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' });