Expand description
Long-lived WS-driven sync writer.
Writer::start acquires the advisory lockfile so only one writer runs per
machine, performs an initial REST backfill, then subscribes to the relay
WebSocket. Incoming new_clip events are decrypted (when an encryption key
is available) and inserted into the local store. On disconnect the loop
receives WsStatus::Disconnected and ws::run reconnects automatically
with exponential backoff.
Writer::shutdown signals the background task to stop and awaits it.
Structsยง
- Writer
- Long-lived WS-driven sync writer. One per machine, coordinated by the
~/.cinch/sync.lockadvisory lockfile.