docs: Add docstrings for connect! and connect-json! functions in api.clj

This commit is contained in:
2025-06-08 09:16:15 -07:00
parent 9cb5fc3194
commit 86d3747185
+4
View File
@@ -42,6 +42,8 @@
(core/subscribe-topic! client topic {:buffer-size buffer-size :qos qos}))
(defn connect!
"Connects to the MQTT broker with the provided host, port, username, password, scheme, and verbosity level.
Returns a new MilquetoastClient instance."
[& {:keys [host port username password scheme verbose]
:or {verbose false
scheme :tcp}}]
@@ -52,6 +54,8 @@
:verbose verbose)))
(defn connect-json!
"Connects to the MQTT broker with the provided host, port, username, password, scheme, and verbosity level.
Returns a new MilquetoastJsonClient instance."
[& {:keys [host port username password scheme verbose]
:or {verbose false
scheme :tcp}}]