From ae81b91f0c710632f55b43f0193e16ab0dd81dde Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 22 Mar 2023 15:58:18 -0700 Subject: [PATCH] Added `get!` function --- src/milquetoast/client.clj | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/milquetoast/client.clj b/src/milquetoast/client.clj index e87e9f4..68e030c 100644 --- a/src/milquetoast/client.clj +++ b/src/milquetoast/client.clj @@ -109,6 +109,9 @@ :or {qos 1 retain false}}] (send-message! client topic msg {:qos qos :retain retain})) +(defn get! [client topic & options] + (get-topic! client topic options)) + (defn open-channel! [client topic & {:keys [buffer-size qos retain] :or {buffer-size 1