Webpack build for branch master: ee679c7320

This commit is contained in:
Travis CI 2017-05-27 18:21:45 +00:00
parent f357ef3649
commit eb8af7b121
2 changed files with 5 additions and 2 deletions

View file

@ -17040,13 +17040,16 @@ class WebSocketConnection extends EventEmitter {
* @param {Error} error Error that occurred
*/
onError(error) {
if (error && error.message === 'uWs client connection error') {
this.reconnect();
return;
}
/**
* Emitted whenever the client's WebSocket encounters a connection error.
* @event Client#error
* @param {Error} error The encountered error
*/
this.client.emit(Constants.Events.ERROR, error);
if (error.message === 'uWs client connection error') this.reconnect();
}
/**

File diff suppressed because one or more lines are too long