silly hydar

This commit is contained in:
Amish Shah
2017-05-01 15:42:47 +01:00
parent b8018d4b6d
commit c48f042785

View File

@@ -368,7 +368,7 @@ class WebSocketConnection extends EventEmitter {
* @param {CloseEvent} event Close event that was received
*/
onClose(event) {
this.debug(`${this.expectingClose ? 'Server' : 'Client'} closed WebSocket connection: ${event.code}`);
this.debug(`${this.expectingClose ? 'Client' : 'Server'} closed the WebSocket connection: ${event.code}`);
this.closeSequence = this.sequence;
// Reset the state before trying to fix anything
this.emit('close', event);