mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 11:10:38 +00:00
Webpack build for branch master: a22b856494
This commit is contained in:
parent
f7fd04544e
commit
a59d3d567c
2 changed files with 6 additions and 4 deletions
|
|
@ -14639,13 +14639,15 @@ class WebSocketConnection extends EventEmitter {
|
||||||
|
|
||||||
this.inflate.push(data, flush && zlib.Z_SYNC_FLUSH);
|
this.inflate.push(data, flush && zlib.Z_SYNC_FLUSH);
|
||||||
if (!flush) return;
|
if (!flush) return;
|
||||||
|
let packet;
|
||||||
try {
|
try {
|
||||||
const packet = WebSocket.unpack(this.inflate.result);
|
packet = WebSocket.unpack(this.inflate.result);
|
||||||
this.onPacket(packet);
|
|
||||||
if (this.client.listenerCount('raw')) this.client.emit('raw', packet);
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.client.emit('debug', err);
|
this.client.emit('debug', err);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
this.onPacket(packet);
|
||||||
|
if (this.client.listenerCount('raw')) this.client.emit('raw', packet);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue