Phoenix.Transports.Serializer behaviour

Defines a behaviour for Phoenix.Socket.Message serializiation.

Callbacks

decode!/2

Specs

decode!(iodata, options :: Keyword.t) :: Phoenix.Socket.Message.t

Decodes iodata into Phoenix.Socket.Message struct

encode!/1

Encodes Phoenix.Socket.Message struct to transport respresentation

fastlane!/1

Specs

fastlane!(Phoenix.Socket.Broadcast.t) :: term

Translates a Phoenix.Socket.Broadcast struct to fastlane format