Socket.IO – how do I get a list of connected sockets/clients?
I’m trying to get a list of all the sockets/clients that are currently connected. io.sockets does not return an array, unfortunately. I know I could keep my own list using an array, but don’t think this is an optimal solution for 2 reasons: Redundancy. Socket.IO already keeps a copy of this list. Socket.IO provides method … Read more