Hi SailsJS Gurus,
Now I know how to use the rooms!
Thanks to Trying to broadcast socket.io message to all connected sockets in e.g. room
The next step is to be able to know when the broadcast/blast/emit procedure is finished. (http://sailsjs.org/#/documentation/reference/websockets/sails.sockets)
Is this an async method, or is this a blocking method?
I'm afraid the latency of the broadcast could catch up with the request itself, and create a memory leak maybe.
So when I try:
sails.sockets.broadcast('myroom','myroomevent',{hello:'world'});
How do I know when this is ready for yet another broadcast?
Thanks in advance!
I.