I\'m building a small prototype with node.js and socket.io. Everything is working well, the only issue I\'m facing is that my node.js connection will disconnect and I\'m fo
If the first connection attempt fails, socket.io 0.9.16 doesn't try to reconnect for some reason. This is how I worked around that.
//if this fails, socket.io gives up
var socket = io.connect();
//tell socket.io to never give up :)
socket.on('error', function(){
socket.socket.reconnect();
});