Basalt's own: what a WebSocket is opened with.
Interface in @minecraft/server-net
Basalt’s own: what a WebSocket is opened with.
import type { WebSocketOptions } from '@minecraft/server-net';Properties
Section titled “Properties”headers
Section titled “headers”optional
headers?: Record<string, string>;Headers sent with the opening handshake, as an Authorization token.
protocols
Section titled “protocols”optional
protocols?: string | string[];Subprotocols offered, in order of preference; the server’s pick is protocol.