View Source ChannelsHandler.Handler behaviour (channel_handler v0.1.1)

A module implementing an event handler. Modules that use ChannelHandler already comply with this behaviour, so you should prefer that instead.

Link to this section Summary

Link to this section Callbacks

@callback handle_in(
  {term(), map()},
  Phoenix.Socket.t()
) :: Phoenix.Channel.reply()
@callback handle_in(String.t(), {term(), map()}, Phoenix.Socket.t()) ::
  Phoenix.Channel.reply()