Liking cljdoc? Tell your friends :D

mqtt.test-client


*default-host*clj


*default-port*clj


closeclj

(close socket)

closed?clj


connack-reasonclj

(connack-reason socket reason)

connectclj

(connect socket opts)

connected?clj

(connected? socket)

Check if a socket is currently connected.

Check if a socket is currently connected.
raw docstring

disconnectclj

(disconnect socket)

disconnected?clj

(disconnected? socket & {:keys [timeout] :or {timeout 1000}})

Check if a socket receives no more messages and is disconnected.

Check if a socket receives no more messages and is disconnected.
raw docstring

expect-messageclj

(expect-message socket f & {:keys [timeout]})

get-next-message-idclj

(get-next-message-id socket)

open?clj

(open? socket)

Check if a socket is currently connected.

Check if a socket is currently connected.
raw docstring

pingclj

(ping socket)

publishclj

(publish socket
         topic
         payload
         &
         {:keys [qos message-id wait]
          :or {qos 1 message-id (get-next-message-id socket) wait true}})

raw-send-messageclj

(raw-send-message socket msg)

recv-messageclj

(recv-message socket)

send-messageclj

(send-message socket msg)

Send a packet from the client. We use the 'done' channel as a mutex so we can block until the send is done.

Send a packet from the client. We use the 'done' channel as a mutex so we
can block until the send is done.
raw docstring

socketclj

(socket)
(socket addr)

Creates and connects a raw mqtt socket to the address. Returns two chans an input one and an output one.

Creates and connects a raw mqtt socket to the address. Returns two chans an input one and an output one.
raw docstring

subscribeclj

(subscribe socket topic-qos-pairs)

unsubscribed-messagesclj

(unsubscribed-messages socket)

with-clientcljmacro

(with-client [client opts] & body)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close