Wampex.Serializer behaviour (wampex v0.2.1)

Behaviour for Serializers

Link to this section Summary

Link to this section Types

Specs

data_type() :: :binary | :text

Link to this section Callbacks

Specs

data_type() :: data_type()
Link to this callback

deserialize(data)

Specs

deserialize(data :: binary()) :: {:ok, Wampex.message()}
Link to this callback

deserialize!(data)

Specs

deserialize!(data :: binary()) :: Wampex.message()
Link to this callback

serialize(data)

Specs

serialize(data :: Wampex.message()) :: {:ok, binary()}
Link to this callback

serialize!(data)

Specs

serialize!(data :: Wampex.message()) :: binary()