/** * WebSocket Event Routes * * Registers WebSocket endpoints for real-time event communication between the MCP Hub Lite server and connected clients. * This module sets up the WebSocket infrastructure using the @fastify/websocket plugin and creates connection * handlers for managing client connections and message routing. * * The WebSocket API enables bidirectional communication for real-time updates including: * - Server status changes * - Tool and resource updates * - Log entries and system events * - Configuration changes * - Client connection/disconnection events * * Clients can subscribe to specific event types and receive live updates without polling, * providing an efficient and responsive user experience for monitoring and managing the MCP ecosystem. * * @param fastify - The Fastify instance to register routes on * @returns Promise that resolves when WebSocket routes are registered * * @example * ```typescript * // Register WebSocket routes * await webSocketRoutes(app); * ``` */ import type { FastifyInstance } from 'fastify'; export declare function webSocketRoutes(fastify: FastifyInstance): Promise; //# sourceMappingURL=events.d.ts.map