/** * WebSocket Server - Socket.io setup with EventBus architecture * * Provides real-time event streaming between server and clients via WebSocket. * Mutations are handled via REST API, WebSocket is for subscription and streaming only. * * Architecture: * - Business logic emits domain events → EventBus * - event-listeners.ts translates EventBus → Socket.io (granular events) * - handlers/ handle session room join/leave operations */ import { Server as SocketIOServer } from 'socket.io'; import type { Server as HTTPServer } from 'http'; import type { SessionManager } from '../../core/session-manager.js'; import type { EventBus } from '../../core/event-bus.js'; import type { ServerToClientEvents, ClientToServerEvents, InterServerEvents, SocketData } from '../../types/events.js'; /** * Create and configure WebSocket server with EventBus architecture * * @param httpServer - HTTP server instance to attach Socket.io to * @param sessionManager - SessionManager instance * @param eventBus - EventBus instance for domain events * @returns Configured Socket.io server */ export declare function createWebSocketServer(httpServer: HTTPServer, sessionManager: SessionManager, eventBus: EventBus): SocketIOServer; //# sourceMappingURL=index.d.ts.map