Skip to main content

Module daemon_client

Module daemon_client 

Source
Expand description

Blocking client for the daemon’s local API, used by the tray UI.

The daemon publishes its URL and bearer token in the discovery file (<config dir>/local-api.json); DaemonClient::discover reads it afresh, so a restarted daemon on a new port is found again.

Structs§

DaemonClient
A client bound to one daemon’s URL and token.

Enums§

ClientError
Why a call to the daemon failed.

Constants§

REQUEST_TIMEOUT
Per-request timeout. Every route the UI calls answers at once; a daemon that takes longer is treated as unreachable.