This repository has been archived on 2026-02-28. You can view files and clone it, but cannot push or open issues or pull requests.
ServerSpacebarOld/src/util/WebSocket.ts
2021-04-22 23:37:03 +02:00

21 lines
465 B
TypeScript

import { Intents } from "@fosscord/server-util";
import WS, { Server, Data } from "ws";
import { Deflate } from "zlib";
interface WebSocket extends WS {
version: number;
user_id: string;
encoding: "etf" | "json";
compress?: "zlib-stream";
shard_count?: bigint;
shard_id?: bigint;
deflate?: Deflate;
heartbeatTimeout: NodeJS.Timeout;
readyTimeout: NodeJS.Timeout;
intents: Intents;
sequence: number;
}
export default WebSocket;
export { Server, Data };