Reconnecting to socket.io when disconnected or failing reconnection.