pub fn run_daemon(
listener: &TcpListener,
injector: Arc<dyn Injector>,
opts: &DaemonOptions,
) -> Result<(), AppError>Expand description
Run the daemon accept loop: each connection streams NDJSON; every received
InjectionCommand (from a cast frame or a bare line) is replayed through
injector. One thread per connection (mirrors relay::serve).
ยงErrors
AppError::internal on a fatal accept error.