summary refs log tree commit diff
path: root/gateway
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-12 21:20:47 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-12 21:20:47 +0200
commit0a0a61565e761b78ae4e39c0d1fb5f0489b37ecd (patch)
tree059e612db4af7e3925664c97a70856adbda8d07e /gateway
parent:art: remove long relatives paths -> short module paths (diff)
downloadserver-0a0a61565e761b78ae4e39c0d1fb5f0489b37ecd.tar.xz
:bug: fix gateway
Diffstat (limited to 'gateway')
-rw-r--r--gateway/src/events/Connection.ts5
-rw-r--r--gateway/src/events/Message.ts2
-rw-r--r--gateway/src/util/WebSocket.ts1
3 files changed, 5 insertions, 3 deletions
diff --git a/gateway/src/events/Connection.ts b/gateway/src/events/Connection.ts
index 625ceaa2..b9d2d6a1 100644
--- a/gateway/src/events/Connection.ts
+++ b/gateway/src/events/Connection.ts
@@ -1,4 +1,5 @@
-import WebSocket, { Server } from "@fosscord/gateway/util/WebSocket";
+import WS from "ws";
+import WebSocket from "@fosscord/gateway/util/WebSocket";
 import { IncomingMessage } from "http";
 import { Close } from "./Close";
 import { Message } from "./Message";
@@ -18,7 +19,7 @@ try {
 // TODO: check msg max size
 
 export async function Connection(
-	this: Server,
+	this: WS.Server,
 	socket: WebSocket,
 	request: IncomingMessage
 ) {
diff --git a/gateway/src/events/Message.ts b/gateway/src/events/Message.ts
index 5c6bd2fc..66f98f1c 100644
--- a/gateway/src/events/Message.ts
+++ b/gateway/src/events/Message.ts
@@ -1,4 +1,4 @@
-import WebSocket, { Data } from "@fosscord/gateway/util/WebSocket";
+import WebSocket from "@fosscord/gateway/util/WebSocket";
 var erlpack: any;
 try {
 	erlpack = require("erlpack");
diff --git a/gateway/src/util/WebSocket.ts b/gateway/src/util/WebSocket.ts
index 820cb1a3..15d1549f 100644
--- a/gateway/src/util/WebSocket.ts
+++ b/gateway/src/util/WebSocket.ts
@@ -1,6 +1,7 @@
 import { Intents, Permissions } from "@fosscord/util";
 import WS from "ws";
 import { Deflate } from "zlib";
+import { Channel } from "amqplib";
 
 interface WebSocket extends WS {
 	version: number;