title: Possible to simulate several concurrent connections to test a nodejs app
body: <p>I have a simple node.js /socket.io (websockets) application running @localhost. I am trying to see how many concurrent connections it can handle. Is it possible to simulate several concurrent users on localhost itself ?</p>
  
  <p>This is my half baked attempt using socket.io-client:</p>
  
  <pre><code>function connectAndSend(){
      socket.emit('qand',{
          code :'ubuntu'
      });
  } 
  socket.on('connect', function () {
  });
  socket.on('q', function (data) {
      console.log(data);
  });
  
  function callConnect(){
      console.log('calling');
      connectAndSend() ;
      setTimeout(callConnect,100) ;
  }
  
  callConnect() ;
  </code></pre>
  
  <p>As I see it this only 'emits' a new message every 100 ms and is not simulating concurrent connections.</p>