@langwatch/scenario
    Preparing search index...

    Interface WebSocketLike

    Minimal subset of the ws library's WebSocket surface that the adapter actually uses. Exists so tests can inject a fake without pulling in ws.

    interface WebSocketLike {
        readyState?: number;
        close(): void;
        on(event: "message", listener: (data: RawData) => void): this;
        on(event: "error", listener: (err: Error) => void): this;
        on(event: "close", listener: () => void): this;
        on(event: "open", listener: () => void): this;
        once(event: "open", listener: () => void): this;
        once(event: "error", listener: (err: Error) => void): this;
        removeAllListeners(): void;
        send(data: string): void;
    }
    Index

    Properties

    readyState?: number

    Methods