reconnect timeout
This commit is contained in:
parent
f3d7041bd3
commit
bac0d06402
1 changed files with 4 additions and 2 deletions
|
|
@ -184,9 +184,11 @@ export default class Handler {
|
|||
|
||||
log("connected, subbing...")
|
||||
relay.onclose = (() => {
|
||||
log("relay disconnected, will try to reconnect")
|
||||
log("relay disconnected, will try to reconnect in 2 seconds")
|
||||
relay.close()
|
||||
setTimeout(() => {
|
||||
this.Connect()
|
||||
}, 2000)
|
||||
})
|
||||
|
||||
const appIds = Object.keys(this.apps)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue