Skip to main content

Module worker_client

Module worker_client 

Source
Expand description

WorkerClient — UDS connection to one Bun render-pool worker.

Wire protocol: NDJSON-framed, one JSON object per line. id = 0 is reserved for lifecycle messages (ready / ping / pong / drain). See .yah/docs/architecture/mesofact.md §“IPC protocol”.

Concurrency note: all I/O is serialized through io: Mutex<WorkerIo>. For P7 this is fine — Mode 2 renders are stubbed (501), so the only callers are the watchdog (ping) and shutdown (drain). Refactor in P9 when concurrent renders share the socket.

Structs§

RenderResult
WorkerClient

Enums§

WorkerError