I'm using express.io (express + socket.io). In my site I have users, and users have guilds, and users are in cities. Each user is in a room for their guild, and a room for their city. Is it possible to broadcast to people in a specific guild, who are also in a specific city?
My question is similar to Send event only to clients that are in a combination of rooms with Socket.io but I'm unable to use the answer there, because my cartisian product would be too large.
My current idea is to find out how to get a list of all sockets in the guild room, and a list of all sockets in the city room, and then do the intersection myself. I'm just wondering if anyone knows of a cleaner way to do it :)