From 2487212e61bef058a47aa611fb467f970354c7a9 Mon Sep 17 00:00:00 2001 From: bordun Date: Wed, 20 Nov 2019 15:01:12 +0100 Subject: [PATCH] ipc: slower ping request on client side to avoid false-positive disconnections --- src/client/app/ipc/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/app/ipc/index.js b/src/client/app/ipc/index.js index 4ae293a5..67282892 100644 --- a/src/client/app/ipc/index.js +++ b/src/client/app/ipc/index.js @@ -8,9 +8,9 @@ setTimeout(()=>{ locales = require('../locales') }) -var reconnectTimeout = 1000, - hearbeatInterval = 2000, - hearbeatTimeout = 1000, +var reconnectTimeout = 2000, + hearbeatInterval = 5000, + hearbeatTimeout = 3000, protocol = document.location.protocol === 'https:' ? 'wss://' : 'ws://' class Ipc extends EventEmitter {