I have an architecture problem.
I have a code using socket.io at nodejs :
socket.on('images',function (aData){
...
socket.sockets.emit('show', JSON.stringify({imagens : json}))
});
I'm trying to broadcast a broadcast from time to time in the show event, but the connected sockets can not be sending the images event all the time.
A loop on the backend itself might resolve the issue, but I need a trigger for the images
tails event other than the sockets connected.
Any solution or alternative?