Merge pull request #4546 from tsiegleauq/websocket-debugging

Add websocket debug output
This commit is contained in:
Norman Jäckel 2019-03-29 11:53:27 +01:00 committed by GitHub
commit 8f393a1877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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