LiveKit JS Client SDK - v2.25.0
    Preparing search index...

    Interface RoomExtension<RoomApi, LocalParticipantApi>Experimental

    A feature that createRoom(options, [...]) (or the full Room) installs on a room. The methods returned from install are copied onto the room (room) and its local participant (local) under the same names the full SDK uses, so code moves between the light and full builds unchanged.

    install runs synchronously right after the room is constructed, before any user code, so handlers registered there are in place before connect().

    interface RoomExtension<RoomApi = {}, LocalParticipantApi = {}> {
        key: symbol;
        requires?: readonly RoomExtension<any, any>[];
        install(
            room: CoreRoom,
            ctx: ExtensionContext,
        ): ExtensionResult<RoomApi, LocalParticipantApi>;
    }

    Type Parameters

    • RoomApi = {}
    • LocalParticipantApi = {}
    Index
    key: symbol
    requires?: readonly RoomExtension<any, any>[]

    Hard dependencies. They install first; an instance the app lists explicitly wins over them.