(get-publisher this topic-name)
Get or create the Publisher for the given topic name.
Get or create the Publisher for the given topic name.
(halt this)
Shutdown all publishers and subscribers associated with this client.
Shutdown all publishers and subscribers associated with this client.
(publish this topic-name message)
Publish a message to the topic, which will be created if necessary. Message should be Clojure map.
Publish a message to the topic, which will be created if necessary. Message should be Clojure map.
(remove-subscription this topic-name)
Shuts down subscriber and removes subscription. Messages in the subscription will be lost.
Shuts down subscriber and removes subscription. Messages in the subscription will be lost.
(stop-subscriber this topic-name)
Stops subscriber.
Stops subscriber.
(subscribe this topic-name handler)
(subscribe this topic-name handler additional-config)
Subscribe to the topic, which will be created if necessary. The decoded message map will be passed to handler
.
Handler must return a truthy value for the message to be ACKed from the queue.
Returning a falsy value results in a NACK and the message will be redelivered.
additional-config
will be merged into the general subscriber config
Subscribe to the topic, which will be created if necessary. The decoded message map will be passed to `handler`. Handler must return a truthy value for the message to be ACKed from the queue. Returning a falsy value results in a NACK and the message will be redelivered. `additional-config` will be merged into the general subscriber config
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close