checks if the connection can exchange message with the server or not