UNPKG

@wavequery/conductor

Version:
29 lines (28 loc) 940 B
import { EventEmitter } from "events"; import { Graph, GraphNode, VisualizationConfig } from "@/types/interfaces/visualization"; export declare class VizServer extends EventEmitter { private readonly wss; private readonly httpServer; private readonly clients; private currentGraph; private readonly config; constructor(port?: number, config?: Partial<VisualizationConfig>); private setupWebSocket; private handleClientMessage; private getGraphMetadata; private getNodesByType; private getNodesByStatus; private sendToClient; private broadcast; private getClientHtml; private processGraph; pinNode(nodeId: string, position?: { x: number; y: number; }): void; unpinNode(nodeId: string): void; private mergeGraphs; updateGraph(updates: Partial<Graph>): void; updateNode(nodeId: string, updates: Partial<GraphNode>): void; close(): void; }