Phoenix.Transports.Serializer behaviour

Defines a Behaviour for Transport Phoenix.Socket.Message serializiation.

Source

Callbacks

decode!/2

Specs:

Decodes iodata into Phoenix.Socket.Message struct.

Source
encode!/1

Specs:

Encodes Phoenix.Socket.Message struct to iodata.

Source