Added `get!` function

This commit is contained in:
niten 2023-03-22 15:58:18 -07:00
parent bd1f4cde76
commit ae81b91f0c
1 changed files with 3 additions and 0 deletions

View File

@ -109,6 +109,9 @@
:or {qos 1 retain false}}] :or {qos 1 retain false}}]
(send-message! client topic msg {:qos qos :retain retain})) (send-message! client topic msg {:qos qos :retain retain}))
(defn get! [client topic & options]
(get-topic! client topic options))
(defn open-channel! (defn open-channel!
[client topic & {:keys [buffer-size qos retain] [client topic & {:keys [buffer-size qos retain]
:or {buffer-size 1 :or {buffer-size 1