This commit is contained in:
Travis CI 2016-12-05 21:07:49 +00:00
parent e92f6a83a5
commit ebe5e9d5f6
2 changed files with 5 additions and 3 deletions

View file

@ -219,6 +219,7 @@ exports.Status = {
RECONNECTING: 2,
IDLE: 3,
NEARLY: 4,
DISCONNECTED: 5,
};
exports.ChannelTypes = {
@ -21236,6 +21237,7 @@ class WebSocketManager extends EventEmitter {
eventClose(event) {
this.emit('close', event);
this.client.clearInterval(this.client.manager.heartbeatInterval);
this.status = Constants.Status.DISCONNECTED;
/**
* Emitted whenever the client websocket is disconnected
* @event Client#disconnect

File diff suppressed because one or more lines are too long