Liking cljdoc? Tell your friends :D

otarta.packet


connectcljs

(connect {:keys [username password client-id keep-alive]})
source

decodecljs

(decode array-buffer)

Turns array-buffer into data.

Sample data: {:first-byte {:type :pingresp} :remaining-length 2 :remaining-bytes {:packet-identifier 1}}

Turns array-buffer into data.

Sample data:
{:first-byte {:type :pingresp}
 :remaining-length 2
 :remaining-bytes {:packet-identifier 1}}
sourceraw docstring

decode-speccljsmultimethod

source

disconnectcljs

(disconnect)
source

encodecljs

(encode pkt)
source

encode-speccljsmultimethod

source

find-by-namecljs

(find-by-name name)
source

find-by-valuecljs

(find-by-value value)
source

packetscljs

source

pingreqcljs

(pingreq)
source

publishcljs

(publish {:keys [dup? qos retain? topic packet-identifier payload]
          :or {dup? false qos 0 retain? false}})
source

subscribecljs

(subscribe {:keys [packet-identifier topic-filter qos] :or {qos 0}})
source

unsubscribecljs

(unsubscribe {:keys [packet-identifier topic-filter]})
source

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

× close