Add websocket debug output

Adds socket.warn functions to have a higher change to find errors
This commit is contained in:
Sean Engelhardt 2019-03-29 11:37:47 +01:00
parent b130a28a4c
commit 615e33f396

View File

@ -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);
});
};
}
/**