Fix/ws error messages (#334)
* Updating translations. * Translation updates * Adding websocket error and reconnect toasts. Fixes #129
This commit is contained in:
parent
efa4a639f4
commit
a0d9e5c672
3 changed files with 18 additions and 3 deletions
|
@ -56,6 +56,10 @@ export class WebSocketService {
|
|||
this.ws.send(data);
|
||||
}
|
||||
|
||||
public closeEventListener(listener: (event: CloseEvent) => void) {
|
||||
this.ws.addEventListener("close", listener);
|
||||
}
|
||||
|
||||
public static get Instance() {
|
||||
return this._instance || (this._instance = new this());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue