Vote count:
0
Suppose I have a set of rooms of different sports ("football", "basketball", "tennis" ...) and a set of rooms of cities ("paris", "london", "berlin" ...) in a Node.js app with Socket.IO
Is it possible to send and event only to those from London interested in football? Something like:
io.sockets.in('london').in('football').emit('event_name', data);
Or is it bad design?
Thanks in advance.
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire