Room Scope
Establishes a room scope which remembers a Room object which can be accessed through the RoomLocal composition local.
Parameters
the url of the livekit server to connect to.
the token to connect to livekit with.
enable or disable audio. Defaults to false.
enable or disable video. Defaults to false.
whether the room should connect to the server. Defaults to true.
options to pass to the Room.
overrides to pass to the Room. Will not reflect changes beyond the initial creation.
options to use when connecting. Will not reflect changes if already connected.
a listener to be called upon room connection.
a listener to be called upon room disconnection.
a listener to be called upon room error.
if a Room is provided, it will be used. If null, a new Room will be created instead.
by default, this composable handles the connection management and will disconnect the room when the composable goes out of scope. Setting this to false will disable this behavior. This is effective in combination with passedRoom, when you need to keep the Room object alive and connected separately from the UI (for example, with a background service).