1 files changed, 13 insertions, 0 deletions
diff --git a/src/util/WebSocket.ts b/src/util/WebSocket.ts
new file mode 100644
index 00000000..41ce8851
--- /dev/null
+++ b/src/util/WebSocket.ts
@@ -0,0 +1,13 @@
+import WS, { Server, Data } from "ws";
+
+interface WebSocket extends WS {
+ version: number;
+ userid: bigint;
+ encoding: "etf" | "json";
+ compress?: "zlib-stream";
+ heartbeatTimeout: NodeJS.Timeout;
+ readyTimeout: NodeJS.Timeout;
+}
+
+export default WebSocket;
+export { Server, Data };
|