lock
lock
- lock(
params):Promise<void>
Locks the room. This prevents new participants from joining the room.
Returns
Promise<void>
Example
In this example, we wait for a room to start and then lock the room. This prevents
new participants from joining the room. This example assumes that there is a RoomSession
already active and that members are joining the room.