(create-interceptor store
{:keys [id-fn on-purge]
:or {id-fn (constantly :datastar.wow.deacon/id)
on-purge (constantly nil)}})
An interceptor that allows opt-in/managed connection persistence and reuse by adding a :datastar.wow.deacon/key value to a datastar.wow response.
An interceptor that allows opt-in/managed connection persistence and reuse by adding a :datastar.wow.deacon/key value to a datastar.wow response.
(purge! ctx store k on-purge)
Remove a connection from storage and from future dispatches
Remove a connection from storage and from future dispatches
(store! ctx store k sse)
Store the given sse connection and set data for future dispatches
Store the given sse connection and set data for future dispatches
(with-connection ctx store k)
If a connection exists in storage, use it
If a connection exists in storage, use it
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 |