pub fn is_server_connected() -> bool