The presenter seat: harness targets registered by id, each receiving the view delta since its own last successful delivery.
A target is (fn [ops]) where ops is a vector of hive-vessel op maps. A target that throws is marked :degraded with its error and keeps its last successful delivery, so the next broadcast retries the full delta; it never affects another presenter. Callers serialize seat mutations.
The presenter seat: harness targets registered by id, each receiving the view delta since its own last successful delivery. A target is (fn [ops]) where ops is a vector of hive-vessel op maps. A target that throws is marked :degraded with its error and keeps its last successful delivery, so the next broadcast retries the full delta; it never affects another presenter. Callers serialize seat mutations.
(broadcast! seat current)Offer CURRENT panels to every presenter on SEAT. Returns the status map.
Offer CURRENT panels to every presenter on SEAT. Returns the status map.
(register! seat id target current)Register TARGET under ID on SEAT and catch it up to CURRENT panels. Re-registering the same target keeps its delivery history; a different target starts fresh. Returns ID, or nil when TARGET is not a fn.
Register TARGET under ID on SEAT and catch it up to CURRENT panels. Re-registering the same target keeps its delivery history; a different target starts fresh. Returns ID, or nil when TARGET is not a fn.
(status seat)id -> {:status :live|:degraded|:pending, :deliveries n, :error msg?}.
id -> {:status :live|:degraded|:pending, :deliveries n, :error msg?}.
(unregister! seat id)Forget ID on SEAT. Returns ID, or nil when it was not registered.
Forget ID on SEAT. Returns ID, or nil when it was not registered.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |