title: How to simulate a connection failure in Socket.IO
body: <p>I'm developing an application where clients connect to a nodejs server via Socket.io and subscribe to a variety of events. These subscriptions are fairly complex can not be handled with Socket.IO's channel feature.</p>
  
  <p>This means that the client needs to keep track of its subscriptions and may have to re-subscribe when it was disconnected. Unfortunately, I'm not quite sure how Socket.IO handles reconnecting and exactly how transparent that happens to the client.</p>
  
  <p>So here's the question: how can I simulate a connection failure and force Socket.IO to reconnect?</p>