diff options
Diffstat (limited to 'src/gateway/util/Send.ts')
-rw-r--r-- | src/gateway/util/Send.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gateway/util/Send.ts b/src/gateway/util/Send.ts index 2a28d8e0..7826dd40 100644 --- a/src/gateway/util/Send.ts +++ b/src/gateway/util/Send.ts @@ -7,8 +7,7 @@ try { import { Payload, WebSocket } from "@fosscord/gateway"; export async function Send(socket: WebSocket, data: Payload) { - if(process.env.WS_VERBOSE) - console.log(`[Websocket] Outgoing message: ${JSON.stringify(data)}`); + if (process.env.WS_VERBOSE) console.log(`[Websocket] Outgoing message: ${JSON.stringify(data)}`); let buffer: Buffer | string; if (socket.encoding === "etf") buffer = erlpack.pack(data); // TODO: encode circular object |