summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
authorDiego Magdaleno <diegomagdaleno@protonmail.com>2021-05-22 22:23:53 -0500
committerDiego Magdaleno <diegomagdaleno@protonmail.com>2021-05-22 22:23:53 -0500
commit217b476cd20f13376454706abcfe0f095f09bb63 (patch)
tree57e05d3b40afe4f7f33253578419b170b0fe990d /src/util
parentMeta: Enable strictNullChecks (diff)
parentMerge pull request #1 from luth31/fix-strictcheck (diff)
downloadserver-217b476cd20f13376454706abcfe0f095f09bb63.tar.xz
Merge branch 'master' of github.com:DiegoMagdaleno/fosscord-gateway
Diffstat (limited to 'src/util')
-rw-r--r--src/util/Send.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/Send.ts b/src/util/Send.ts

index 09e947a5..be25ac4f 100644 --- a/src/util/Send.ts +++ b/src/util/Send.ts
@@ -11,7 +11,7 @@ export async function Send(socket: WebSocket, data: Payload) { if (socket.encoding === "etf") buffer = erlpack.pack(data); // TODO: encode circular object else if (socket.encoding === "json") buffer = JSON.stringify(data); - + else return; // TODO: compression if (socket.deflate) { socket.deflate.write(buffer);