Functions for opening and handling a connection using the MQTT 3.x protocol. All functions are specified using clojure.spec.
Specs related to options and callbacks.
Functions for opening and handling a connection using the MQTT 3.x protocol. All functions are specified using clojure.spec. Specs related to options and callbacks.
(ack client message)
Manually acknowledges a received message.
Should not be used unless the client has been connected with the ::dvlopt.mqtt/manual-acks? option set to true.
Manually acknowledges a received message. Should not be used unless the client has been connected with the ::dvlopt.mqtt/manual-acks? option set to true.
(buffer-count client)
Counts how many messages are currently buffered for reliability.
Counts how many messages are currently buffered for reliability.
(buffer-get client index)
Gets a buffered message.
Gets a buffered message.
(client-id client)
What is the client-id of the given client ?
What is the client-id of the given client ?
(close client)
(close client opts)
Closes a client and releases all associated resources.
Closes a client and releases all associated resources.
(connected? client)
Is the given client currently connected ?
Is the given client currently connected ?
(current-uri client)
To which uri is the given client currently connected ?
To which uri is the given client currently connected ?
(open)
(open opts)
Builds a client and opens a connection.
Returns a map containing the ::client as well as values for options that have default values.
Builds a client and opens a connection. Returns a map containing the ::client as well as values for options that have default values.
(publish client topic opts)
Publishes to a topic.
Publishes to a topic.
(subscribe client subscriptions)
(subscribe client subscriptions opts)
Subscribes the given client to topics.
Subscribes the given client to topics.
(unsubscribe client topics)
(unsubscribe client topics opts)
Unsubscribes the given client from topics.
Unsubscribes the given client from topics.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close