phoenix_gen_socket_client v2.0.0 Phoenix.Channels.GenSocketClient.Serializer behaviour View Source
Describes the serializer interface used in Phoenix.Channels.GenSocketClient
to encode/decode messages.
Link to this section Summary
Link to this section Callbacks
Invoked to decode the raw message.
Link to this callback
encode_message(arg0)
View Source
encode_message(Phoenix.Channels.GenSocketClient.message) :: {:ok, Phoenix.Channels.GenSocketClient.Transport.frame} | {:error, reason :: any}
Invoked to encode a socket message.