For now all users that can join the audio stream are admins. I've extended userController by
const role = users.length === 0 ? 'admin' : 'visitor'
const user = {id,name,room,role};
...
const role = usersInVoice.length === 0 ? 'admin' : 'visitor'
const user = {id,name,room,role};
and replaced user:admin with user:user.role. In result, we have two roles of users.
Furthermore, visitors may get Listen button instead of admn's Join voice
For now all users that can join the audio stream are admins. I've extended userController by
and replaced
user:adminwithuser:user.role. In result, we have two roles of users.Furthermore, visitors may get Listen button instead of admn's Join voice