mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
try again
This commit is contained in:
@@ -1165,7 +1165,7 @@ var InternalClient = (function () {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.websocket.onmessage = function (e) {
|
this.websocket.onmessage = function (e) {
|
||||||
if (e.type === "Binary") {
|
if (e.data instanceof Buffer) {
|
||||||
if (!zlib) zlib = require("zlib");
|
if (!zlib) zlib = require("zlib");
|
||||||
e.data = zlib.inflateSync(e.data).toString();
|
e.data = zlib.inflateSync(e.data).toString();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1055,7 +1055,7 @@ export default class InternalClient {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.websocket.onmessage = e => {
|
this.websocket.onmessage = e => {
|
||||||
if (e.type === "Binary") {
|
if (e.data instanceof Buffer) {
|
||||||
if (!zlib) zlib = require("zlib");
|
if (!zlib) zlib = require("zlib");
|
||||||
e.data = zlib.inflateSync(e.data).toString();
|
e.data = zlib.inflateSync(e.data).toString();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user