The EncodeDecode module handles translation of strings sent over the wire to and from your message types.
Your WebSocket subscription message handler will need to use decodeMessage, you will often use genericMessageDecoder, and, if you track statistics, you'll likely need the statistics encoder & decoder, but you'll rarely directly use the rest of the functions in this module.
Simplify the writing of MessageDecoder definitions.
Takes two plists mapping request names to decoders and response names to decoders.
Returns a MessageDecoder that uses them.
Use a MessageEncoder that you write to turn a message into a string.
Create a Decoder for decodeMessage.
Use a MessageEncoder that you write to turn a message into a Value.
Rarely used by anything but encodeMessage.
Encode a Statistics record.
Decoder for the Statistics record.
Turn a string into a raw message.
The Decoder used by decodeRawMessage
Turn a raw message into a Value.
Decode a list of key/value pairs into a message.
Use a
MessageDecoderthat you write to turn a string into a message.