Add websocket debug output
Adds socket.warn functions to have a higher change to find errors
This commit is contained in:
parent
b130a28a4c
commit
615e33f396
@ -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);
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user