reconnect timeout

This commit is contained in:
boufni95 2025-09-18 18:27:49 +00:00
parent f3d7041bd3
commit bac0d06402

View file

@ -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()
this.Connect()
setTimeout(() => {
this.Connect()
}, 2000)
})
const appIds = Object.keys(this.apps)