Webpack build for branch 11.1-dev: 6cd55ed5c9

This commit is contained in:
Travis CI 2017-05-05 18:18:12 +00:00
parent 9ca395c3a3
commit cfd32ad000

View file

@ -17435,6 +17435,10 @@ class WebSocketConnection extends EventEmitter {
this.debug('Tried to mark self as ready, but already ready');
return;
}
/**
* Emitted when the client becomes ready to start working.
* @event Client#ready
*/
this.status = Constants.Status.READY;
this.client.emit(Constants.Events.READY);
this.packetManager.handleQueue();
@ -17674,6 +17678,11 @@ class WebSocketConnection extends EventEmitter {
* @param {Error} error Error that occurred
*/
onError(error) {
/**
* 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();
}