phoenix_gen_socket_client v3.1.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
Specs
decode_message(Phoenix.Channels.GenSocketClient.encoded_message()) :: Phoenix.Channels.GenSocketClient.message()
Invoked to decode the raw message.
Specs
encode_message(Phoenix.Channels.GenSocketClient.message()) :: {:ok, Phoenix.Channels.GenSocketClient.Transport.frame()} | {:error, reason :: any()}
Invoked to encode a socket message.