Phoenix v1.2.1 Phoenix.Transports.Serializer behaviour

Defines a behaviour for Phoenix.Socket.Message serialization.

Summary

Callbacks

Encodes Phoenix.Socket.Message struct to transport respresentation

Translates a Phoenix.Socket.Broadcast struct to fastlane format

Callbacks

decode!(iodata, options)

Specs

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

Decodes iodata into Phoenix.Socket.Message struct

encode!(arg0)

Encodes Phoenix.Socket.Message struct to transport respresentation

fastlane!(arg0)

Specs

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

Translates a Phoenix.Socket.Broadcast struct to fastlane format