hostname including protocol. i.e. 'https://cluster.livekit.io'
API Key, can be set in env var LIVEKIT_API_KEY
API Secret, can be set in env var LIVEKIT_API_SECRET
Creates 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.
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
when undefined or empty, list all rooms. otherwise returns rooms with matching names
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
optional. when empty, message is sent to everyone
Updates a participant's metadata or permissions
optional, metadata to update
optional, new permissions to assign to participant
Update metadata of a room
name of the room
the new metadata for the room
Updates a participant's subscription to tracks
true to subscribe, false to unsubscribe
Generated using TypeDoc
Client to access Room APIs