@langwatch/scenario
    Preparing search index...

    Interface PipecatWebSocketLike

    Minimal WebSocket surface the adapter needs. Modeled on the ws package's API. Exposed so tests can inject a fake without pulling in ws or a real WS server.

    interface PipecatWebSocketLike {
        close(): void;
        on(event: "message", listener: (data: unknown) => 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(event?: string): this;
        send(data: string | Uint8Array<ArrayBufferLike>): void;
    }
    Index

    Methods