fix(frontend-assist): set disconnection on inactivity to 15sec

This commit is contained in:
ShiKhu 2022-02-10 23:23:19 +01:00
parent c60c769c40
commit b24fc5e137

View file

@ -100,7 +100,7 @@ export default class AssistManager {
if (document.hidden && getState().calling === CallingState.NoCall) {
this.socket?.close()
}
}, 2000) // TODO: test on 2000
}, 15000)
} else {
inactiveTimeout && clearTimeout(inactiveTimeout)
this.socket?.open()