Disconnect All Users of Room when "Host" Disconnects in Socket.IO
Currently I have the originator of a room marked as the "Host".
I need to set it so that if the "Host" clicks a "Close Room" link, it will disconnect all over users from that room id.

How can I grab all users from `socket.manager.roomClients` or something of the sorts, loop through them all and run some type of `socket.leave( room_id )` if the "Host's" room_id matches the key in the socket manager?

Thanks for any insight or help. Let me know if I need to clarify anything.


Disconnect All Users of Room when "Host" Disconnects in Socket.IO
===

Currently I have the originator of a room marked as the "Host".
I need to set it so that if the "Host" clicks a "Close Room" link, it will disconnect all over users from that room id.

How can I grab all users from `socket.manager.roomClients` or something of the sorts, loop through them all and run some type of `socket.leave( room_id )` if the "Host's" room_id matches the key in the socket manager?

Thanks for any insight or help. Let me know if I need to clarify anything.

