LiveState.Encoder protocol (live_state v0.9.0)

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

Summary

Types

t()

All the types that implement this protocol.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

encode(data, opts \\ [])