Member Junction
    Preparing search index...

    Arguments handed to AssemblyAIRealtime.connectAgentSocket: the authenticated URL plus the lifecycle callbacks, so the seam owns the entire websocket dance and tests substitute it wholesale.

    interface AssemblyAIConnectArgs {
        OnClose: (code?: number, reason?: string) => void;
        OnError: (message: string) => void;
        OnMessage: (event: AssemblyAIServerEvent) => void;
        Url: 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: AssemblyAIServerEvent) => void

    Invoked with each parsed inbound frame.

    Url: string

    The full wss://…?token=… URL (API key for server-bridged, temp token for client-direct).