Phoenix v1.2.1 Phoenix.Transports.Serializer behaviour
Defines a behaviour for Phoenix.Socket.Message
serialization.
Summary
Callbacks
Decodes iodata into Phoenix.Socket.Message
struct
Encodes Phoenix.Socket.Message
struct to transport respresentation
Translates a Phoenix.Socket.Broadcast
struct to fastlane format
Callbacks
Specs
decode!(iodata, options :: Keyword.t) :: Phoenix.Socket.Message.t
Decodes iodata into Phoenix.Socket.Message
struct
Specs
encode!(Phoenix.Socket.Message.t | Phoenix.Socket.Reply.t) :: term
Encodes Phoenix.Socket.Message
struct to transport respresentation
Specs
fastlane!(Phoenix.Socket.Broadcast.t) :: term
Translates a Phoenix.Socket.Broadcast
struct to fastlane format