diff --git a/client/src/app/core/core-services/websocket.service.ts b/client/src/app/core/core-services/websocket.service.ts index 09e7c9360..2d85513cb 100644 --- a/client/src/app/core/core-services/websocket.service.ts +++ b/client/src/app/core/core-services/websocket.service.ts @@ -218,6 +218,14 @@ export class WebsocketService { this._closeEvent.emit(); }); }; + + this.websocket.onerror = (event: ErrorEvent) => { + // place for proper error handling and debugging. + // Required to get more information about errors + this.zone.run(() => { + console.warn('Websocket is on Error state. Error: ', event); + }); + }; } /**