summary refs log tree commit diff
path: root/src/events/Message.ts
diff options
context:
space:
mode:
authorDiego Magdaleno <38844659+DiegoMagdaleno@users.noreply.github.com>2021-05-22 22:22:14 -0500
committerGitHub <noreply@github.com>2021-05-22 22:22:14 -0500
commit74f02db2d132aa3626ae508a7ad15370c080dc1b (patch)
tree57e05d3b40afe4f7f33253578419b170b0fe990d /src/events/Message.ts
parent:arrow_up: update dependency (diff)
parentFix compilation with strictNullChecks: true (diff)
downloadserver-74f02db2d132aa3626ae508a7ad15370c080dc1b.tar.xz
Merge pull request #1 from luth31/fix-strictcheck
Fix compilation with strictNullChecks: true
Diffstat (limited to '')
-rw-r--r--src/events/Message.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/events/Message.ts b/src/events/Message.ts

index 2c3305cb..51c5a294 100644 --- a/src/events/Message.ts +++ b/src/events/Message.ts
@@ -21,6 +21,7 @@ export async function Message(this: WebSocket, buffer: Data) { if (this.encoding === "etf" && buffer instanceof Buffer) data = erlpack.unpack(buffer); else if (this.encoding === "json" && typeof buffer === "string") data = JSON.parse(buffer); + else return; check.call(this, PayloadSchema, data);