From 471d1d6b28f8a6b62680408756e389e8a0b71be0 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 6 Feb 2021 17:08:08 +0100 Subject: :sparkles: Base Server --- src/util/WebSocket.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/util/WebSocket.ts (limited to 'src/util/WebSocket.ts') 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 }; -- cgit 1.5.1