diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-15 14:40:59 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-15 14:40:59 +0200 |
commit | 4f12d6d3532027ab9fa5891f350bd89629f8fe7a (patch) | |
tree | ff8e8172db46d78d1e54959cbaa4ac5d33dfd217 /gateway/src/events/Message.ts | |
parent | Merge branch 'master' of https://github.com/fosscord/fosscord-server (diff) | |
download | server-4f12d6d3532027ab9fa5891f350bd89629f8fe7a.tar.xz |
:bug: fix types
Diffstat (limited to 'gateway/src/events/Message.ts')
-rw-r--r-- | gateway/src/events/Message.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gateway/src/events/Message.ts b/gateway/src/events/Message.ts index 2ca82b3c..0a3979c4 100644 --- a/gateway/src/events/Message.ts +++ b/gateway/src/events/Message.ts @@ -7,6 +7,7 @@ import OPCodeHandlers from "../opcodes"; import { Payload, CLOSECODES } from "../util/Constants"; import { instanceOf, Tuple } from "lambert-server"; import { check } from "../opcodes/instanceOf"; +import WS from "ws"; const PayloadSchema = { op: Number, @@ -15,7 +16,7 @@ const PayloadSchema = { $t: String, }; -export async function Message(this: WebSocket, buffer: Data) { +export async function Message(this: WebSocket, buffer: WS.Data) { // TODO: compression var data: Payload; |