Member Junction
    Preparing search index...

    The minimal websocket surface this client depends on: assignable lifecycle handlers plus send/close. Declaring the seam as an interface (rather than the platform WebSocket) lets unit tests inject a fully in-memory fake that captures outbound frames and drives the handlers with AssemblyAI-shaped events — no websocket, no network.

    interface IAssemblyAIClientSocket {
        onclose: () => void;
        onerror: (message: string) => void;
        onmessage: (data: string) => void;
        onopen: () => void;
        close(): void;
        send(data: string): void;
    }
    Index

    Properties

    onclose: () => void

    Invoked when the socket closes (any reason).

    onerror: (message: string) => void

    Invoked on a socket-level error (fatal).

    onmessage: (data: string) => void

    Invoked with each inbound frame's raw string payload.

    onopen: () => void

    Invoked once the socket is open.

    Methods