Called from Tauri setup to eagerly initialize the remote connect service and restore any previously paired bot connections. Without this, bots only start listening after the user first opens the Remote Connect dialog.
()
| 33 | /// and restore any previously paired bot connections. Without this, bots |
| 34 | /// only start listening after the user first opens the Remote Connect dialog. |
| 35 | pub fn init_on_startup() { |
| 36 | tokio::spawn(async { |
| 37 | if let Err(e) = ensure_service().await { |
| 38 | log::warn!("Remote connect startup init failed: {e}"); |
| 39 | } |
| 40 | }); |
| 41 | } |
| 42 | |
| 43 | /// Synchronous cleanup called when the application exits. |
| 44 | pub fn cleanup_on_exit() { |