summary refs log tree commit diff
path: root/src/util/WebSocket.ts
blob: 10b8348ffa69a7584f19d2d2fe6bb9bdf75a9d4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { Intents } from "fosscord-server-util";
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;
	intents: Intents;
}

export default WebSocket;
export { Server, Data };