feat: Implement public functions in client.clj using api namespace calls

This commit is contained in:
niten" (aider) 2025-06-08 09:42:52 -07:00
parent ccc02809fa
commit 09da5b0bb0

View File

@ -3,33 +3,33 @@
(defn send! [client topic msg & {:keys [qos retain]
:or {qos 1 retain false}}]
...)
(api/send! client topic msg :qos qos :retain retain))
(defn get! [client topic & options]
...)
(api/get! client topic options))
(defn get-raw! [client topic & options]
...)
(api/get-raw! client topic options))
(defn open-channel!
[client topic & {:keys [buffer-size qos retain]
:or {buffer-size 1
qos 1
retain false}}]
...)
(api/open-channel! client topic :buffer-size buffer-size :qos qos :retain retain))
(defn subscribe!
[client topic & {:keys [buffer-size qos]
:or {buffer-size 1
qos 1}}]
...)
(api/subscribe! client topic :buffer-size buffer-size :qos qos))
(defn connect!
[& {:keys [host port scheme verbose]
:or {verbose false
scheme :tcp}
:as opts}]
...)
(api/connect! :host host :port port :scheme scheme :verbose verbose))
(defn connect-json! [& args]
...)
(apply api/connect-json! args))