in the doc it's written that you can sends event to all connected users by using the following server side code for an update event
function backandCallback(userInput, dbRow, parameters, userProfile)
{
socket.emitAll("items_updated", userInput);
}
then in your angular client code, you can listen for this event by doing the following
Backand.on('items_updated', function (data) {
//Get the 'items' object that have changed
console.log(data);
});
i'm working with anonymous users, i can't use emitUsers or emitRoles to restrict to only concerned users.
As i don't want all anonymous users to receive all update events but only the ones for the item they are on (stupid to listen for updates you don't care isn't it!), would there be a way to only listen for events on a specific item?
thanks for your help