summary refs log tree commit diff
path: root/gateway/src/events/Message.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/Message.ts
parentMerge branch 'master' of https://github.com/fosscord/fosscord-server (diff)
downloadserver-4f12d6d3532027ab9fa5891f350bd89629f8fe7a.tar.xz
:bug: fix types
Diffstat (limited to 'gateway/src/events/Message.ts')
-rw-r--r--gateway/src/events/Message.ts3
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;