interface
WebSocketAn open WebSocket connection — a per-plugin handle over a copied message stream (no live socket crosses to JS).
onMessage(handler: (data: string) => void): voidonClose(handler: (code: number, reason: string) => void): voidcode/reason come from the close frame.onError(handler: (err: string) => void): voiderr is the error text.send(data: string): voidclose(): void