Categories
Mastering Development

Multiple socket.event inside one socket.on

I am trying an application that emits multiple times when it is called once. For example: ` io.on(‘connection’, socket => { socket.on(‘compute-library’, message => { while (true) { socket.emit(‘status’, 1) }; }); }); ‘ However, when I am running my application, I only get a single emit element. If I add a termination condition for […]