Spell.Serializer behaviour
The Spell.Serializer
behaviour specifies the contract for a WAMP
serializer.
See the protocol documentation.
Callbacks
Specs:
- decode(String.t) :: Spell.Message.t
Decodes a binary string encoded message
Specs:
- encode(Spell.Message.t) :: String.t
Encodes a message into a binary string
Specs:
- transport_info(module :: atom) :: %{}
Returns the transport specific data of the serializer. This is used among other things to construct the sub-protocol name:
$transport.2.$serializer