Riverside.Codec behaviour (riverside v2.0.0)

Link to this section Summary

Link to this section Types

Link to this type

frame_type()

Specs

frame_type() :: :text | :binary

Link to this section Callbacks

Specs

decode(binary()) :: {:ok, any()} | {:error, :invalid_message}

Specs

encode(any()) :: {:ok, binary()} | {:error, :invalid_message}

Specs

frame_type() :: frame_type()