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.

Source

Summary

handle_cast(msg, state)

Forwards incoming client messages through handle_in/3 callbacks

handle_info(msg, state)

Forwards regular Elixir messages through handle_info/2 callbacks

init(args)

Initializes the Socket server for Phoenix.Channel joins

start_link(socket, auth_payload)

Functions

handle_cast(msg, state)

Forwards incoming client messages through handle_in/3 callbacks

Source
handle_info(msg, state)

Forwards regular Elixir messages through handle_info/2 callbacks

Source
init(args)

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.

Source
start_link(socket, auth_payload)
Source