(create-pubsub topic)
Constructor for a pub-sub messenger. Takes one parameter, a publisher topic, that is used to perform lookups.
Since topics are keywords, the data sent on the publish channel needs to have the topic as one of the keys, or a subscriber will not receive the message.
Constructor for a pub-sub messenger. Takes one parameter, a publisher topic, that is used to perform lookups. Since topics are keywords, the data sent on the publish channel needs to have the topic as one of the keys, or a subscriber will not receive the message.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close