UNPKG

browser-debugger-cli

Version:

DevTools telemetry in your terminal. For humans and agents. Direct WebSocket to Chrome's debugging port.

27 lines 721 B
/** * Socket Connection Manager * * Manages Unix domain socket connections with proper cleanup. */ import type { Socket } from 'net'; export interface SocketConfig { socketPath: string; timeoutMs: number; requestName: string; } export interface SocketHandlers { onConnect?: (socket: Socket) => void; onData?: (chunk: string) => void; onError?: (error: Error) => void; onClose?: () => void; onEnd?: () => void; onTimeout?: () => void; } /** * Create and configure a socket connection with event handlers. */ export declare function createSocket(config: SocketConfig, handlers: SocketHandlers): { socket: Socket; cleanup: () => void; }; //# sourceMappingURL=socket.d.ts.map