View Source StateChannel behaviour (state_channel v0.0.1)

Link to this section Summary

Link to this section Callbacks

@callback init_state(socket :: term()) :: term()
Link to this callback

on_message(key, value, socket)

View Source (optional)
@callback on_message(key :: term(), value :: term(), socket :: term()) :: term()

Link to this section Functions

Link to this function

handle_in(mod, arg, map, socket)

View Source
Link to this function

handle_info(atom, socket)

View Source