summary refs log tree commit diff
path: root/gateway/src/events/Connection.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-15 14:40:59 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-15 14:40:59 +0200
commit4f12d6d3532027ab9fa5891f350bd89629f8fe7a (patch)
treeff8e8172db46d78d1e54959cbaa4ac5d33dfd217 /gateway/src/events/Connection.ts
parentMerge branch 'master' of https://github.com/fosscord/fosscord-server (diff)
downloadserver-4f12d6d3532027ab9fa5891f350bd89629f8fe7a.tar.xz
:bug: fix types
Diffstat (limited to '')
-rw-r--r--gateway/src/events/Connection.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/gateway/src/events/Connection.ts b/gateway/src/events/Connection.ts

index 5fbcbff5..fed3c611 100644 --- a/gateway/src/events/Connection.ts +++ b/gateway/src/events/Connection.ts
@@ -6,6 +6,7 @@ import { setHeartbeat } from "../util/setHeartbeat"; import { Send } from "../util/Send"; import { CLOSECODES, OPCODES } from "../util/Constants"; import { createDeflate } from "zlib"; +import { URL } from "url"; var erlpack: any; try { erlpack = require("erlpack"); @@ -18,6 +19,7 @@ try { export async function Connection(this: Server, socket: WebSocket, request: IncomingMessage) { try { socket.on("close", Close); + // @ts-ignore socket.on("message", Message); const { searchParams } = new URL(`http://localhost${request.url}`);