Spell.Serializer behaviour

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

See the protocol documentation.

Source

Callbacks

decode/1

Specs:

Set the pid which the transport should send received messages to.

Source
encode/1

Specs:

Send a message over the transport.

Source
name/0

Specs:

Returns the name of the serializer. This is used to construct the sub-protocol name:

$transport.2.$serializer
Source