Member Junction
    Preparing search index...

    The live native room client the module hands back. The surface mirrors ILiveKitRoomSdk but in the native SDK's own (lower-cased) vocabulary; this adapter maps between the two. VERIFY against the native LiveKit Node SDK wrapper.

    interface NativeRoomClient {
        connect(args: NativeConnectArgs): Promise<NativeConnectResult>;
        disconnect(): Promise<void>;
        flushOutbound(): void;
        getParticipants(): Promise<NativeRoomParticipant[]>;
        onAudioFrame(cb: (frame: NativeRoomAudioFrame) => void): void;
        onDisconnected(cb: () => void): void;
        onParticipantConnected(
            cb: (participant: NativeRoomParticipant) => void,
        ): void;
        onParticipantDisconnected(cb: (participantIdentity: string) => void): void;
        publishAudio(pcm: ArrayBuffer): void;
        publishData(text: string): Promise<void>;
        publishScreen(frame: ArrayBuffer): void;
        publishVideo(frame: ArrayBuffer): void;
    }

    Implemented by

    Index

    Methods

    • Registers the participant-disconnected callback (identity of the participant that left).

      Parameters

      • cb: (participantIdentity: string) => void

      Returns void