Phoenix.Transports.Serializer behaviour
Defines a Behaviour for Transport Phoenix.Socket.Message
serializiation
Callbacks
Specs:
- decode!(iodata, :text | :binary) :: Phoenix.Socket.Message.t
Decodes iodata into Phoenix.Socket.Message
struct
Specs:
- encode!(Phoenix.Socket.Message.t) :: {:text | :binary, iodata}
Encodes Phoenix.Socket.Message
struct to iodata