summary refs log tree commit diff
path: root/gateway/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'gateway/src/util')
-rw-r--r--gateway/src/util/Send.ts2
-rw-r--r--gateway/src/util/WebSocket.ts3
-rw-r--r--gateway/src/util/index.ts5
3 files changed, 7 insertions, 3 deletions
diff --git a/gateway/src/util/Send.ts b/gateway/src/util/Send.ts

index be25ac4f..1b00e361 100644 --- a/gateway/src/util/Send.ts +++ b/gateway/src/util/Send.ts
@@ -2,7 +2,7 @@ var erlpack: any; try { erlpack = require("erlpack"); } catch (error) {} -import { Payload } from "../util/Constants"; +import { Payload } from "@fosscord/gateway/util/Constants"; import WebSocket from "./WebSocket"; diff --git a/gateway/src/util/WebSocket.ts b/gateway/src/util/WebSocket.ts
index 2c763743..15d1549f 100644 --- a/gateway/src/util/WebSocket.ts +++ b/gateway/src/util/WebSocket.ts
@@ -1,5 +1,5 @@ import { Intents, Permissions } from "@fosscord/util"; -import WS, { Server, Data } from "ws"; +import WS from "ws"; import { Deflate } from "zlib"; import { Channel } from "amqplib"; @@ -21,4 +21,3 @@ interface WebSocket extends WS { } export default WebSocket; -export { Server, Data }; diff --git a/gateway/src/util/index.ts b/gateway/src/util/index.ts new file mode 100644
index 00000000..27af5813 --- /dev/null +++ b/gateway/src/util/index.ts
@@ -0,0 +1,5 @@ +export * from "./Constants"; +export * from "./Send"; +export * from "./SessionUtils"; +export * from "./setHeartbeat"; +export * from "./WebSocket";