Member Junction
    Preparing search index...

    Arguments handed to InworldRealtime.connectRealtimeSocket: the authenticated URL plus the lifecycle callbacks. The seam owns the entire WebSocket dance so tests substitute it wholesale with an in-memory fake — no network, no real socket.

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

    Invoked with each parsed inbound frame.

    Url: string

    The full wss://…?token=… URL.