/// import http from 'http'; import WSWebSocket from 'ws'; export declare const WEBSOCKET_OPTIONS: { maxPayload: number; }; export declare class WebSocketServer { readonly server: WSWebSocket.Server; constructor(ctor: typeof WSWebSocket.Server, port: number); /** * Fired when the server is ready to accept connections. Callback will only * be executed once. * @param cb Callback function to be executed. */ onStart(cb: (ws: WSWebSocket) => void): void; onConnection(cb: (ws: WSWebSocket, req: http.IncomingMessage) => void): void; close(): void; } //# sourceMappingURL=webSocketServer.d.ts.map