pub async fn add_peer( ip: String, state: State<'_, DiscoveryState>, window: WebviewWindow, ) -> Result<(), String>