Getting number/order of current participants?

Hi,

I was wondering if there is a method for tracking the number of participants currently in a session? And if there any way of determining which order the user is in the session?

As in: host is 1, the first person to join is 2, and the next is 3, and so on. I know there is an ID assigned to each participant but is there an order tracked explicitly?

if u joined a room u will get an object. In there is a property called, participants (object):

i count them like:
Object.keys(participantsObject).length

I don’t know it this is the right way, but i works for me fine.

That’s great! Is this object ordered in any way? So as to determine the order of entry into the meeting?

I didn’t check it, but i can let u know after i proof it