ipc: slower ping request on client side to avoid false-positive disconnections

This commit is contained in:
bordun 2019-11-20 15:01:12 +01:00
parent 1e1d532265
commit 2487212e61

View file

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