/** * WebSocket Types * * Types for the functional Monaco WebSocket client. */ /** * WebSocket connection status */ export type WebSocketStatus = "connected" | "connecting" | "disconnected" | "reconnecting"; /** * Raw event message interface * This is the raw message received from the backend */ export interface RawEventMessage { /** Channel name */ channel: string; /** Event data */ data: unknown; /** Event type */ type: string; } /** * Base error event that can be used across different components */ export interface BaseErrorEvent { type: string; message: string; timestamp: number; code?: string | number; details?: unknown; }