riverside v1.0.1 Riverside.Codec behaviour

Link to this section Summary

Link to this section Types

Link to this type frame_type()
frame_type() :: :text | :binary

Link to this section Callbacks

Link to this callback decode(binary)
decode(binary) :: {:ok, any} | {:error, :invalid_message}
Link to this callback encode(any)
encode(any) :: {:ok, binary} | {:error, :invalid_message}
Link to this callback frame_type()
frame_type() :: frame_type