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...")
|
log("connected, subbing...")
|
||||||
relay.onclose = (() => {
|
relay.onclose = (() => {
|
||||||
log("relay disconnected, will try to reconnect")
|
log("relay disconnected, will try to reconnect in 2 seconds")
|
||||||
relay.close()
|
relay.close()
|
||||||
|
setTimeout(() => {
|
||||||
this.Connect()
|
this.Connect()
|
||||||
|
}, 2000)
|
||||||
})
|
})
|
||||||
|
|
||||||
const appIds = Object.keys(this.apps)
|
const appIds = Object.keys(this.apps)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue