hostname including protocol. i.e. 'https://
Optional
apiKey: stringAPI Key, can be set in env var LIVEKIT_API_KEY
Optional
secret: stringAPI Secret, can be set in env var LIVEKIT_API_SECRET
Optional
sip: SIPGrantCreates a new room. Explicit room creation is not required, since rooms will be automatically created when the first participant joins. This method can be used to customize room settings.
Forwards a participant's track to another room. This will create a
participant to join the destination room that has same information
with the source participant except the kind to be Forwarded
. All
changes to the source participant will be reflected to the forwarded
participant. When the source participant disconnects or the
RemoveParticipant
method is called in the destination room, the
forwarding will be stopped.
the room to forward the participant to
Get information on a specific participant, including the tracks that participant has published
name of the room
identity of the participant to return
List participants in a room
name of the room
List active rooms
Optional
names: string[]when undefined or empty, list all rooms. otherwise returns rooms with matching names
Move a connected participant to a different room. Requires roomAdmin
and destinationRoom
.
The participant will be removed from the current room and added to the destination room.
From the other observers' perspective, the participant would've disconnected from the previous room and joined the new one.
the room to move the participant to
Mutes a track that the participant has published.
sid of the track to be muted
true to mute, false to unmute
Removes a participant in the room. This will disconnect the participant and will emit a Disconnected event for that participant. Even after being removed, the participant can still re-join the room.
Sends data message to participants in the room
opaque payload to send
delivery reliability
optionally specify a topic and destinationSids (when destinationSids is empty, message is sent to everyone)
Sends data message to participants in the room
opaque payload to send
delivery reliability
Optional
destinationSids: string[]optional. when empty, message is sent to everyone
Updates a participant's state or permissions
target room
participant identity
participant fields to update
Updates a participant's state or permissions
target room
participant identity
Optional
metadata: stringOptional
permission: Partial<ParticipantPermission>Optional
name: stringUpdate metadata of a room
name of the room
the new metadata for the room
Client to access Room APIs