Liking cljdoc? Tell your friends :D

oc.lib.async.watcher

Track which 'watchers' are 'watching' which resources.

Use of this watcher is through core/async. A message is sent to the watcher-chan to register interest, unregister interest and send something to all that have registered interest.

The sending to registered listeners is the resposibility of the user of this watcher and is done by consuming the core.async sender-chan from this namespace.

Track which 'watchers' are 'watching' which resources.

Use of this watcher is through core/async. A message is sent to the `watcher-chan` to
register interest, unregister interest and send something to all that have registered interest.

The sending to registered listeners is the resposibility of the user of this watcher and is
done by consuming the core.async `sender-chan` from this namespace.
raw docstring

add-watcherclj

(add-watcher watch-id client-id)

Add a client, make sure the read/write is atomic to avoid race conditions

Add a client, make sure the read/write is atomic to avoid race conditions
sourceraw docstring

remove-watcherclj

(remove-watcher client-id)
(remove-watcher watch-id client-id)

Remove watchers for client, first signature remove all watchers for a client and remove the client-id itself when done, second signature remove a specific watcher only for a client, make sure the read/write is atomic to avoid race conditions

Remove watchers for client,
first signature remove all watchers for a client and remove the client-id itself when done,
second signature remove a specific watcher only for a client,
make sure the read/write is atomic to avoid race conditions
sourceraw docstring

send-eventclj

(send-event id event payload)

Send outbound events to core.async channel

Send outbound events to core.async channel
sourceraw docstring

sender-chanclj

source

startclj

(start)

Start the core.async channel consumer for watching items.

Start the core.async channel consumer for watching items.
sourceraw docstring

stopclj

(stop)

Stop the core.async channel consumer for watching items.

Stop the core.async channel consumer for watching items.
sourceraw docstring

valid-origin-header?clj

(valid-origin-header? ring-req)
source

watcher-chanclj

source

watcher-goclj

source

watcher-loopclj

(watcher-loop)
source

watchersclj

source

watchers-forclj

(watchers-for watch-id)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close