/** * Returns if the client is logged on to the chat and connected to the network. * * @return True if the client is connected. */ public boolean isConnected() { return networkService.isNetworkUp() && isLoggedOn(); }