ipc: slower ping request on client side to avoid false-positive disconnections
This commit is contained in:
parent
6abf7d546f
commit
6811db4c76
1 changed files with 3 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue