I have implemented the roles functionality in mediasoup.
When 1st user enter the room, the room will locked through Socket and if 1st user is host then host will logged in to the system. And after that, other users room is locked and host will allow the user to enter the room. And functionality works fine.
But if 1st user is simple user, and the room is locked through Socket. The 1st user is entered to the room. But when host will try to enter, he entered the room but all the functionality like mic, camera, chat, screenshare everything will stop. And if other user try to logged in, the room is locked and no one will there to allow the user.
Is there anything which I missed?