summary refs log tree commit diff
path: root/src/util/WebSocket.ts
blob: 41ce88518b2d838db42b46591b8c70d08b32bc06 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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 };