foundersandcoders / Live-Peers

2 stars 2 forks source link

Additional Room constructor methods (required for socket router) #66

Closed njsfield closed 7 years ago

njsfield commented 7 years ago

getActiveUsers()

Goes through ALL users in room to see if they have a commsid, if they do, their usernames and permissions are added to an array to return the following-

[{username: ’john’, permissions: [‘av’, ‘chat’]}…]

removeCommsId(endpointid)

Takes the endpointid as argument, and removes its commsid key in its object