What is the best approach in closing a room and kick all the participants?
There is currently no API to close a room and kick all participants. There is however an ongoing discussion about how to achieve something similar in another thread:
While waiting for this, I make a temporary “close conference” function by kicking all the participant first in a loop then I route to home page.
I asked a somewhat related question recently. I took the suggestion in that thread and simply sent a command to all participants to leave the conference. I didn’t necessarily want to disconnect them, but that could be done just as easily. I don’t know if it will suit your needs, but I thought I’d mention it.
Can you please share your function here, specially how to remove a participant? Thanks
I already revised my code and use room.sendCommandOnce in conference.js
room.addCommandListener for the command listener
Can you please share your code?
How can I have list of all participants and how can I kick all of them?
hello, could you help to implement this?, i’m newbie and have not idea how to do it.
Another one here for this
This post may help if a token based solution is OK for you