MicFin
MicFin

Reputation: 2501

TokBox number of users in a room or session

I am new to using TokBox with my Rails app. I have created my "rooms" and a user can create a "room" and other users can join the room and video conference together Marvelous! But how do I know how many users are in a room and which users they are? I would like to display their information eventually but initially I just need to know how to see who is in the room on pageload. Any experienced TokBox devs out there?

Upvotes: 1

Views: 406

Answers (1)

songz
songz

Reputation: 2092

There isn't any way to see who is in the room on pageload. Once you are connected to a session, you will get a connectionCreated event for every person in the room. To get the number of users in the room, just have a counter that increments for each connectionCreated event that gets triggered.

Upvotes: 2

Related Questions