Yggdrasil.Transformer.encode
You're seeing just the callback
encode
, go back to Yggdrasil.Transformer module for more information.
Specs
encode(channel :: Yggdrasil.Channel.t(), message :: term()) :: {:ok, term()} | {:error, term()}
Callback to define how to encode the message
s going to a channel
.