Put in a different way, when the host leaves, how do I disconnect all other players?
Develop games in your browser. Powerful, performant & highly capable.
With the built-in multiplayer, when the host leaves it should automatically kicks all peers. If for some reason doesn't work, I would say to use a 'repeat for each' action.
Give me a Pixel