yggdrasil v2.0.0 Yggdrasil.Decoder behaviour

Decoder behaviour. Defines the adapter and the decoding function from the messages received from the adapter. By default, the adapter is Yggdrasil.Adapter.Elixir

Summary

Callbacks

Callback to define how to decode the messages received from the adapter. Receives the channel and the message. It returns an arbitrary term

Callbacks

decode(channel, message)

Specs

decode(channel, message) :: term when channel: YProcess.channel, message: term

Callback to define how to decode the messages received from the adapter. Receives the channel and the message. It returns an arbitrary term.