pub fn run_relay_device(
relay_addr: &str,
injector: &dyn Injector,
opts: &RelayDeviceOptions,
) -> Result<(), AppError>Expand description
Run the relay-device loop: connect to relay_addr, register, drain + replay,
and reconnect-with-backoff on a clean drop. Stops (returns Ok) on a relay
rejection (token/config error) or when max_attempts is reached.
ยงErrors
AppError::internal only on an unexpected socket-clone failure; connect /
session failures are logged and retried.