title: Testing socket.io events
body: <p>I'm working on a nodejs application. I managed to break some of the code in separate modules, that I'm testing using nodeunit, but a substantial part of my code base still relies on socket.io.</p>
  
  <p>How can I test my socket.io events?</p>