Add CloseEvent external

This commit is contained in:
Amish Shah
2016-12-29 00:27:40 +00:00
parent ea798eaaf3
commit 7ede44bc00

View File

@@ -229,6 +229,11 @@ class WebSocketManager extends EventEmitter {
this.sequence = -1;
}
/**
* @external CloseEvent
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent}
*/
/**
* Run whenever the connection to the gateway is closed, it will try to reconnect the client.
* @param {CloseEvent} event The WebSocket close event