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.
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.
So here's the question: how can I simulate a connection failure and force Socket.IO to reconnect?