pub async fn start_cli_hotkey_server(
tx: UnboundedSender<()>,
port_file: PathBuf,
) -> Result<CliHotkeyServerGuard>Expand description
Start a local TCP server that accepts hotkey triggers and forwards them to the provided channel.
The server binds to 127.0.0.1:0 (ephemeral) and writes its port to a discovery file.
txreceives()for each incoming trigger.port_filecontrols the discovery location; usedefault_cli_hotkey_port_filefor production.