LiveState.Encoder protocol (live_state v0.8.2)

Allows customization of the representation of a given type as the state in a LiveState.Channel. It is called before serialization and json diffing.

Link to this section Summary

Types

t()

All the types that implement this protocol.

Link to this section Types

@type t() :: term()

All the types that implement this protocol.

Link to this section Functions

Link to this function

encode(data, opts \\ [])