(multicast-message? message)
Inputs: [message :- Message] Returns: s/Bool
Returns a boolean specifying whether the message uses multicast in the target field.
Inputs: [message :- Message] Returns: s/Bool Returns a boolean specifying whether the message uses multicast in the target field.
(v1->v2 v1-msg)
Inputs: [v1-msg :- m1/Message] Returns: Message
Transform a v1 Message to a v2 Message.
Inputs: [v1-msg :- m1/Message] Returns: Message Transform a v1 Message to a v2 Message.
(v1-decode bytes)
Inputs: [bytes :- bytes] Returns: Message
Transform a v1 wire format message to a clojure map conforming to the latest message schema.
Inputs: [bytes :- bytes] Returns: Message Transform a v1 wire format message to a clojure map conforming to the latest message schema.
(v1-encode message)
Inputs: [message :- Message] Returns: bytes
Encode a clojure map conforming to the latest message scheme to the v1 binary wire format.
Inputs: [message :- Message] Returns: bytes Encode a clojure map conforming to the latest message scheme to the v1 binary wire format.
(v2->v1 {:keys [message_type data in_reply_to] :as v2-msg})
Inputs: [{:keys [message_type data in_reply_to], :as v2-msg} :- Message] Returns: m1/Message
Transform a v2 Message to a v1 Message.
Inputs: [{:keys [message_type data in_reply_to], :as v2-msg} :- Message] Returns: m1/Message Transform a v2 Message to a v1 Message.
(validate-not-multicast message)
Inputs: [message]
Inputs: [message]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close