/** * WebSocket Client (FEAT-003) * * Direct WebSocket connection for replaying learned patterns without browser. * Supports plain WebSocket, Socket.IO, and SSE. */ import { EventEmitter } from 'events'; import type { WebSocketReplayOptions, WebSocketReplayResult } from '../types/websocket-patterns.js'; /** * WebSocket client for direct connection replay */ export declare class WebSocketClient extends EventEmitter { private ws; private messages; private errors; private connectedAt; private closedAt; /** * Connect to WebSocket using learned pattern */ connect(options: WebSocketReplayOptions): Promise; /** * Connect using plain WebSocket */ private connectPlainWebSocket; /** * Connect using Socket.IO (using WebSocket under the hood) */ private connectSocketIO; /** * Convert Socket.IO URL to WebSocket URL */ private convertSocketIOToWebSocket; /** * Build connection URL with auth */ private buildConnectionUrl; /** * Build connection headers */ private buildConnectionHeaders; /** * Send message through WebSocket */ private send; /** * Handle received message */ private handleMessage; /** * Close WebSocket connection */ private close; /** * Build replay result */ private buildResult; } //# sourceMappingURL=websocket-client.d.ts.map