Fix.reconnect.issue

This fix patches socket.io-client to properly handle reconnection failures. It was taken from https://github.com/LearnBoost/socket.io-client/pull/516/files. I've tested locally and the fix appears to work.