UNPKG

mcard-js

Version:

MCard - Content-addressable storage with cryptographic hashing, handle resolution, and vector search for Node.js and browsers

35 lines 978 B
/** * WebSocket Server builtin for CLM execution. * * Provides deploy, status, and stop actions for WebSocket servers. * Uses Node.js 'ws' library. */ /** * Configuration for WebSocket server builtin. */ export interface WebSocketServerConfig { action?: 'deploy' | 'status' | 'stop'; port?: number | string; host?: string; } /** * Result from WebSocket server operations. */ export interface WebSocketServerResult { success: boolean; message?: string; error?: string; pid?: number | null; saved_pid?: number | null; port?: number; url?: string | null; status?: 'running' | 'stopped' | 'already_running'; running?: boolean; logFile?: string; details?: string; } /** * Execute WebSocket server builtin. */ export declare function executeWebSocketServer(config: WebSocketServerConfig, context: Record<string, any>, chapterDir: string): Promise<WebSocketServerResult>; //# sourceMappingURL=websocket-server.d.ts.map