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