summary refs log tree commit diff
path: root/src/util
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:43:45 +0300
commit14523cf8976fedbe000d629aeb668e55b2170cdc (patch)
tree57e05d3b40afe4f7f33253578419b170b0fe990d /src/util
parent:arrow_up: update dependency (diff)
downloadserver-14523cf8976fedbe000d629aeb668e55b2170cdc.tar.xz
Fix compilation with strictNullChecks: true
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);