View Source Seance.Encoder protocol (seance v0.1.0)

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

Summary

Types

t()

All the types that implement this protocol.

Types

@type t() :: term()

All the types that implement this protocol.

Functions

Link to this function

encode(data, opts \\ [])

View Source