Phoenix.Channel.Server
Handles %Phoenix.Socket{}
state and invokes channel callbacks.
handle_info/2
Regular Elixir messages are forwarded to the socket channel’s
handle_info/2
callback.
Summary↑
handle_cast(msg, state) | Forwards incoming client messages through |
handle_info(msg, state) | Forwards regular Elixir messages through |
init(args) | Initializes the Socket server for |
start_link(socket, auth_payload) |
Functions
Forwards incoming client messages through handle_in/3
callbacks
Forwards regular Elixir messages through handle_info/2
callbacks
Initializes the Socket server for Phoenix.Channel
joins.
To start the server, return {:ok, socket}
.
To ignore the join request, return :ignore
Any other result will exit with :badarg
See Phoenix.Channel.join/3
documentation.