W3cubDocs

/Phoenix

Phoenix.Transports.Serializer behaviour

Defines a behaviour for Phoenix.Socket.Message serialization.

Summary

Callbacks

decode!(iodata, options)

Decodes iodata into Phoenix.Socket.Message struct

encode!(arg0)

Encodes Phoenix.Socket.Message struct to transport representation

fastlane!(arg0)

Translates a Phoenix.Socket.Broadcast struct to fastlane format

Callbacks

decode!(iodata, options)

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

Decodes iodata into Phoenix.Socket.Message struct

encode!(arg0)

encode!(Phoenix.Socket.Message.t() | Phoenix.Socket.Reply.t()) :: term()

Encodes Phoenix.Socket.Message struct to transport representation

fastlane!(arg0)

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

Translates a Phoenix.Socket.Broadcast struct to fastlane format

© 2014 Chris McCord
Licensed under the MIT License.
https://hexdocs.pm/phoenix/Phoenix.Transports.Serializer.html