start_cli_hotkey_server

Function start_cli_hotkey_server 

Source
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.