Spell.Serializer behaviour

The Spell.Serializer behaviour specifies the contract for a WAMP serializer.

See the protocol documentation.

Source

Callbacks

decode/1

Specs:

Decodes a binary string encoded message

Source
encode/1

Specs:

Encodes a message into a binary string

Source
transport_info/1

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
Source