Actually add GUILD_SYNC

This commit is contained in:
Amish Shah
2016-09-03 17:59:10 +01:00
parent 513fdabd19
commit a172fffd76
10 changed files with 69 additions and 6 deletions

View File

@@ -71,7 +71,10 @@ class WebSocketManager {
* @param {Object} packet An object that can be JSON stringified
* @returns {void}
*/
send(data) {
send(data, force = false) {
if (force) {
return this.ws.send(JSON.stringify(data));
}
this._queue.push(JSON.stringify(data));
this.doQueue();
}