mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 14:41:36 +00:00
Webpack build: c683790de7
This commit is contained in:
parent
3c4d820506
commit
d0c0429e6e
2 changed files with 8 additions and 13 deletions
|
|
@ -8180,7 +8180,7 @@ module.exports = {
|
|||
"pako": "^1.0.3",
|
||||
"superagent": "^3.0.0",
|
||||
"tweetnacl": "^0.14.3",
|
||||
"uws": "^0.11.0"
|
||||
"uws": "^0.11.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"node-opus": "^0.2.0",
|
||||
|
|
@ -20607,16 +20607,11 @@ class WebSocketManager extends EventEmitter {
|
|||
this.normalReady = false;
|
||||
if (this.status !== Constants.Status.RECONNECTING) this.status = Constants.Status.CONNECTING;
|
||||
this.ws = new WebSocket(gateway);
|
||||
if (browser) {
|
||||
this.ws.binaryType = 'arraybuffer';
|
||||
this.ws.onopen = () => this.eventOpen();
|
||||
this.ws.onerror = (e) => this.eventError(e);
|
||||
} else {
|
||||
this.ws.on('open', this.eventOpen.bind(this));
|
||||
this.ws.on('error', this.eventError.bind(this));
|
||||
}
|
||||
this.ws.onclose = (d) => this.eventClose(d);
|
||||
this.ws.onmessage = (e) => this.eventMessage(e);
|
||||
if (browser) this.ws.binaryType = 'arraybuffer';
|
||||
this.ws.onopen = this.eventOpen.bind(this);
|
||||
this.ws.onmessage = this.eventMessage.bind(this);
|
||||
this.ws.onclose = this.eventClose.bind(this);
|
||||
this.ws.onerror = this.eventError.bind(this);
|
||||
this._queue = [];
|
||||
this._remaining = 3;
|
||||
}
|
||||
|
|
|
|||
4
discord.indev.min.js
vendored
4
discord.indev.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue