Webpack build for branch wsrewrite: df12e4b8ba277ddcde18b622cf5a041d4f5fa0c3

This commit is contained in:
Travis CI 2017-04-24 21:43:10 +00:00
parent a14956741a
commit fc0507cae9

View file

@ -15967,37 +15967,37 @@ class WebSocketConnection extends EventEmitter {
constructor(manager, gateway) { constructor(manager, gateway) {
super(); super();
/** /**
* The WebSocket Manager of this connection * WebSocket Manager of this connection
* @type {WebSocketManager} * @type {WebSocketManager}
*/ */
this.manager = manager; this.manager = manager;
/** /**
* The client this belongs to * Client this belongs to
* @type {Client} * @type {Client}
*/ */
this.client = manager.client; this.client = manager.client;
/** /**
* The WebSocket connection itself * WebSocket connection itself
* @type {WebSocket} * @type {WebSocket}
*/ */
this.ws = null; this.ws = null;
/** /**
* The current sequence of the WebSocket * Current sequence of the WebSocket
* @type {number} * @type {number}
*/ */
this.sequence = -1; this.sequence = -1;
/** /**
* The current status of the client * Current status of the client
* @type {number} * @type {number}
*/ */
this.status = Constants.Status.IDLE; this.status = Constants.Status.IDLE;
/** /**
* The packet manager of the connection * Packet Manager of the connection
* @type {WebSocketPacketManager} * @type {WebSocketPacketManager}
*/ */
this.packetManager = new PacketManager(this); this.packetManager = new PacketManager(this);
/** /**
* The last time a ping was sent * Last time a ping was sent (a timestamp)
* @type {number} * @type {number}
*/ */
this.pingSendTime = 0; this.pingSendTime = 0;
@ -16052,7 +16052,7 @@ class WebSocketConnection extends EventEmitter {
// Util // Util
/** /**
* Emits a debug message * Emits a debug message
* @param {string} message the debug message * @param {string} message Debug message
* @returns {void} * @returns {void}
*/ */
debug(message) { debug(message) {
@ -16062,7 +16062,7 @@ class WebSocketConnection extends EventEmitter {
/** /**
* Attempts to serialise data from the WebSocket * Attempts to serialise data from the WebSocket
* @param {string|Object} data the data to unpack * @param {string|Object} data Data to unpack
* @returns {Object} * @returns {Object}
*/ */
unpack(data) { unpack(data) {
@ -16077,7 +16077,7 @@ class WebSocketConnection extends EventEmitter {
/** /**
* Packs an object ready to be sent * Packs an object ready to be sent
* @param {Object} data the data to pack * @param {Object} data Data to pack
* @returns {string|Buffer} * @returns {string|Buffer}
*/ */
pack(data) { pack(data) {
@ -16106,7 +16106,7 @@ class WebSocketConnection extends EventEmitter {
/** /**
* Sends data, bypassing the queue * Sends data, bypassing the queue
* @param {Object} data The packet to send * @param {Object} data Packet to send
* @returns {void} * @returns {void}
*/ */
_send(data) { _send(data) {
@ -16118,7 +16118,7 @@ class WebSocketConnection extends EventEmitter {
/** /**
* Adds data to the queue to be sent * Adds data to the queue to be sent
* @param {Object} data The packet to send * @param {Object} data Packet to send
* @returns {void} * @returns {void}
*/ */
send(data) { send(data) {
@ -16131,7 +16131,7 @@ class WebSocketConnection extends EventEmitter {
/** /**
* Creates a connection to a gateway * Creates a connection to a gateway
* @param {string} gateway the gateway to connect to * @param {string} gateway Gateway to connect to
* @param {number} [after=0] How long to wait before connecting * @param {number} [after=0] How long to wait before connecting
* @param {boolean} [force=false] Whether or not to force a new connection even if one already exists * @param {boolean} [force=false] Whether or not to force a new connection even if one already exists
* @returns {boolean} * @returns {boolean}
@ -16169,7 +16169,7 @@ class WebSocketConnection extends EventEmitter {
/** /**
* Called whenever a message is received * Called whenever a message is received
* @param {Event} event The event received * @param {Event} event Event received
* @returns {boolean} * @returns {boolean}
*/ */
onMessage(event) { onMessage(event) {
@ -16184,7 +16184,7 @@ class WebSocketConnection extends EventEmitter {
/** /**
* Sets the current sequence of the connection * Sets the current sequence of the connection
* @param {number} s The new sequence * @param {number} s New sequence
*/ */
setSequence(s) { setSequence(s) {
this.sequence = s > this.sequence ? s : this.sequence; this.sequence = s > this.sequence ? s : this.sequence;
@ -16192,7 +16192,7 @@ class WebSocketConnection extends EventEmitter {
/** /**
* Called whenever a packet is received * Called whenever a packet is received
* @param {Object} packet The received packet * @param {Object} packet received packet
* @returns {boolean} * @returns {boolean}
*/ */
onPacket(packet) { onPacket(packet) {
@ -16220,7 +16220,7 @@ class WebSocketConnection extends EventEmitter {
/** /**
* Called whenever a connection is opened to the gateway * Called whenever a connection is opened to the gateway
* @param {Event} event The received open event * @param {Event} event Received open event
*/ */
onOpen(event) { onOpen(event) {
this.gateway = event.target.url; this.gateway = event.target.url;
@ -16237,7 +16237,7 @@ class WebSocketConnection extends EventEmitter {
/** /**
* Called whenever an error occurs with the WebSocket * Called whenever an error occurs with the WebSocket
* @param {Error} error The error * @param {Error} error Error that occurred
*/ */
onError(error) { onError(error) {
this.debug(error); this.debug(error);
@ -16245,7 +16245,7 @@ class WebSocketConnection extends EventEmitter {
/** /**
* Called whenever a connection to the gateway is closed * Called whenever a connection to the gateway is closed
* @param {CloseEvent} event The close event * @param {CloseEvent} event Close event that was received
*/ */
onClose(event) { onClose(event) {
this.debug(`Closed: ${event.code}`); this.debug(`Closed: ${event.code}`);
@ -24773,14 +24773,14 @@ const PacketManager = __webpack_require__(66);
const WebSocketConnection = __webpack_require__(65); const WebSocketConnection = __webpack_require__(65);
/** /**
* The WebSocket Manager of the Client * WebSocket Manager of the Client
* @private * @private
*/ */
class WebSocketManager extends EventEmitter { class WebSocketManager extends EventEmitter {
constructor(client) { constructor(client) {
super(); super();
/** /**
* The Client that instantiated this WebSocketManager * Client that instantiated this WebSocketManager
* @type {Client} * @type {Client}
*/ */
this.client = client; this.client = client;
@ -24792,13 +24792,13 @@ class WebSocketManager extends EventEmitter {
this.packetManager = new PacketManager(this); this.packetManager = new PacketManager(this);
/** /**
* The status of the WebSocketManager, a type of Constants.Status. It defaults to IDLE. * Status of the WebSocketManager, a type of Constants.Status. It defaults to IDLE.
* @type {number} * @type {number}
*/ */
this.status = Constants.Status.IDLE; this.status = Constants.Status.IDLE;
/** /**
* The WebSocket connection of this manager * WebSocket connection of this manager
* @type {?WebSocketConnection} * @type {?WebSocketConnection}
*/ */
this.connection = null; this.connection = null;
@ -24815,7 +24815,7 @@ class WebSocketManager extends EventEmitter {
/** /**
* Emits a debug event * Emits a debug event
* @param {string} message The debug message * @param {string} message Debug message
* @returns {void} * @returns {void}
*/ */
debug(message) { debug(message) {
@ -24833,7 +24833,7 @@ class WebSocketManager extends EventEmitter {
/** /**
* Send a packet on the available WebSocket * Send a packet on the available WebSocket
* @param {Object} packet The packet to send * @param {Object} packet Packet to send
* @returns {void} * @returns {void}
*/ */
send(packet) { send(packet) {
@ -24843,7 +24843,7 @@ class WebSocketManager extends EventEmitter {
/** /**
* Connects the client to a gateway * Connects the client to a gateway
* @param {string} gateway The gateway to connect to * @param {string} gateway Gateway to connect to
* @returns {boolean} * @returns {boolean}
*/ */
connect(gateway) { connect(gateway) {