Liking cljdoc? Tell your friends :D

datastar.wow.deacon.interceptors


create-interceptorclj

(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.
sourceraw docstring

purge!clj

(purge! ctx store k on-purge)

Remove a connection from storage and from future dispatches

Remove a connection from storage and from future dispatches
sourceraw docstring

store!clj

(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
sourceraw docstring

update-nexusclj

(update-nexus)
(update-nexus store)
(update-nexus store opts)
source

with-connectionclj

(with-connection ctx store k)

If a connection exists in storage, use it

If a connection exists in storage, use it
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close