steep-balloon-41261
05/12/2025, 10:52 PMtall-airline-16756
05/12/2025, 10:52 PMtall-airline-16756
05/12/2025, 10:52 PMparticipantCount
property of a Room instance:
@objc
var participantCount: Int { get }
• In the JavaScript SDK, you can use the numParticipants
method:
getnumParticipants():number
These methods allow you to retrieve the current number of participants in the room. You can implement a polling mechanism or event-based logic to monitor this count and trigger room closure when it falls below a certain threshold.
If you need further assistance, feel free to ask!
Sources: participantCount | Documentation | Room | LiveKit JS Client SDK - v2.8.1dry-branch-55698
05/12/2025, 10:53 PMtall-airline-16756
05/12/2025, 10:53 PM