dimanche 30 mars 2014

Send event only to clients that are in a combination of rooms with Socket.io


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

B.K.

29





Aucun commentaire:

Enregistrer un commentaire