mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
* push some cursed stuff * bucket * fix bugs and hack start ordered * some management improvements * more gw stuff * f * rename manager to gateway * remove basic thing * remove old stuff * f * fix imp * fixes
8 lines
217 B
TypeScript
8 lines
217 B
TypeScript
import { Shard } from "./types.ts";
|
|
|
|
export function close(shard: Shard, code: number, reason: string): void {
|
|
if (shard.socket?.readyState !== WebSocket.OPEN) return;
|
|
|
|
return shard.socket?.close(code, reason);
|
|
}
|