Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Utkarsha/dera 453/websocket connection closed due to timeout #281

4 changes: 3 additions & 1 deletion src/configs/websocket/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ export class ApiManager {
this.reconnectInterval = setTimeout(this.init.bind(this), RECONNECT_INTERVAL);
attempts -= 1;
} else {
window.alert('server down!!!');
window.alert(
'Sorry, the server is currently down. Please refresh the page or try again later',
);
utkarsha-deriv marked this conversation as resolved.
Show resolved Hide resolved
clearInterval(this.reconnectInterval);
}
});
Expand Down