Javascript – For loop with emit in socket.io
I have a basic web chat application set up using socket.io, express, node.js. For testing purposes I am trying to get the client to send a given number of messages to another client. I have set up a for loop…