Fix web socket reconnect on web socket close (#242)
This commit is contained in:
parent
9715ecaeb1
commit
dc741493b4
|
|
@ -38,7 +38,7 @@ export class WebSocketStore {
|
||||||
.tryAuthenticate()
|
.tryAuthenticate()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.snack('WebSocket connection closed, trying again in 30 seconds.');
|
this.snack('WebSocket connection closed, trying again in 30 seconds.');
|
||||||
setTimeout(this.listen, 30000);
|
setTimeout(() => this.listen(callback), 30000);
|
||||||
})
|
})
|
||||||
.catch((error: AxiosError) => {
|
.catch((error: AxiosError) => {
|
||||||
if (error && error.response && error.response.status === 401) {
|
if (error && error.response && error.response.status === 401) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue