Basalt's own: a WebSocket closing.
Interface in @minecraft/server-net
Basalt’s own: a WebSocket closing.
import type { WebSocketCloseEvent } from '@minecraft/server-net';Properties
Section titled “Properties”read-only
readonly type: "close";read-only
readonly code: number;The close code, 1006 for a connection lost without one.
reason
Section titled “reason”read-only
readonly reason: string;wasClean
Section titled “wasClean”read-only
readonly wasClean: boolean;Whether the other side said goodbye with a close frame.
target
Section titled “target”read-only
readonly target: WebSocket;Types