This commit is contained in:
Travis CI 2016-11-24 03:17:34 +00:00
parent 0381d2e0cb
commit 502a094a04
2 changed files with 4 additions and 4 deletions

View file

@ -20609,11 +20609,11 @@ class WebSocketManager extends EventEmitter {
this.ws = new WebSocket(gateway);
if (browser) {
this.ws.binaryType = 'arraybuffer';
this.ws.on('open', this.eventOpen.bind(this));
this.ws.on('error', this.eventError.bind(this));
} else {
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);

File diff suppressed because one or more lines are too long