How to restrict number of users in a session?

We need to limit the number of participants to 2 in a session. if a third participant tries to join in the same session, it should not be allowed. How to achieve this?

Hey @rinurinshac ,

This logic will need to be implemented on your end. Perhaps you can keep track of how many users are in a session, and then if there are 2, hide your Join UI for additional users.



Is there any api available to get list of users joined in a session?

Hey @rinurinshac

You can listen to the user-added and user-removed events, and client.getAllUser() to obtain the users.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.