Maintain a connection to the server