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
Set the pid which the transport should send received messages to.
Specs:
- encode(Spell.Message.t) :: String.t
Send a message over the transport.
Specs:
- name :: String.t
Returns the name of the serializer. This is used to construct the sub-protocol name:
$transport.2.$serializer