Member Junction
    Preparing search index...

    Arguments handed to ElevenLabsRealtime.connectConversation: the signed URL plus the lifecycle callbacks, so the seam owns the entire websocket dance and tests substitute it wholesale.

    interface ElevenLabsConnectArgs {
        OnClose: (code?: number, reason?: string) => void;
        OnError: (message: string) => void;
        OnMessage: (event: ElevenLabsServerEvent) => void;
        SignedUrl: string;
    }
    Index

    Properties

    OnClose: (code?: number, reason?: string) => void

    Invoked when the websocket closes.

    OnError: (message: string) => void

    Invoked on a websocket-level error (fatal — the session is unusable).

    OnMessage: (event: ElevenLabsServerEvent) => void

    Invoked with each parsed inbound frame.

    SignedUrl: string

    The signed wss://…&token=… URL minted for the agent.