summary refs log tree commit diff
path: root/src/util/Send.ts
diff options
context:
space:
mode:
authorPaul Munteanu <luth@luthcode.net>2021-05-23 05:33:48 +0300
committerPaul Munteanu <luth@luthcode.net>2021-05-23 05:33:48 +0300
commit57cfddac6c59f007595765427f2ce98621b49185 (patch)
tree430f6bbd5bb99e752077fea66378fd28843e0006 /src/util/Send.ts
parentRemove redundant Dockerfile commands (diff)
downloadserver-57cfddac6c59f007595765427f2ce98621b49185.tar.xz
Fix compilation with strictNullChecks: true
Diffstat (limited to 'src/util/Send.ts')
-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);