(decode text)
Inputs: [text :- String] Returns: Message
Returns a message object from a text format used for transmission. Always validates input and output.
Inputs: [text :- String] Returns: Message Returns a message object from a text format used for transmission. Always validates input and output.
(encode message)
Inputs: [message :- Message] Returns: String
Returns a text representation of a message for transmission. Always validates input and output.
Inputs: [message :- Message] Returns: String Returns a text representation of a message for transmission. Always validates input and output.
(get-data message)
Inputs: [message :- Message] Returns: s/Any
Returns the data
Inputs: [message :- Message] Returns: s/Any Returns the data
(make-message)
(make-message opts)
(make-message k v & kvs)
Inputs: ([] [k v & kvs] [opts]) Returns: Message
Returns a new empty message structure
Inputs: ([] [k v & kvs] [opts]) Returns: Message Returns a new empty message structure
Defines the message objects we're using
Defines the message objects we're using
(message->envelope message)
Inputs: [message :- Message] Returns: v2-Envelope
Returns the map without any of the known 'private' keys. Should map to an envelope schema.
Inputs: [message :- Message] Returns: v2-Envelope Returns the map without any of the known 'private' keys. Should map to an envelope schema.
(set-data message data)
Inputs: [message :- Message data :- s/Any] Returns: Message
Sets the data
Inputs: [message :- Message data :- s/Any] Returns: Message Sets the data
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close