Safe Haskell | None |
---|
This module is responsible for converting from low-level ByteStrings
obtained from the 0MQ sockets into Messages. The only exposed function is
parseMessage
, which should only be used in the low-level 0MQ interface.
- parseMessage :: [ByteString] -> ByteString -> ByteString -> ByteString -> ByteString -> Message
Documentation
:: [ByteString] | The list of identifiers sent with the message. |
-> ByteString | The header data. |
-> ByteString | The parent header, which is just {} if there is no header. |
-> ByteString | The metadata map, also {} for an empty map. |
-> ByteString | The message content. |
-> Message | A parsed message. |
Parse a message from its ByteString components into a Message.