Fixing socket.io reconnect/callback