View Source ChannelHandler.Handler behaviour (channel_handler v0.5.0)

A module implementing an event handler.

You can use ChannelHandler.Handler to import phoenix functions like push or reply, and the plug macro for handler-level plugs.

Link to this section Summary

Functions

Registers a plug for the current module

Link to this section Callbacks

Link to this callback

handle_in(t, term, map, t)

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

Link to this section Functions

Registers a plug for the current module

Link to this macro

plug(plug, opts)

View Source (macro)
Link to this function

plug(plug, opts, guards, env)

View Source