PushEx v1.0.1-rc1 PushEx.Behaviour.Socket behaviour
Implementable functions that are used in the flow of socket/channel creation. It is crucial to implement secure connect/join functions for all applications.
Link to this section Summary
Link to this section Callbacks
Link to this callback
channel_join(bitstring, map, arg3)
channel_join(bitstring, map, arg3)
channel_join(bitstring(), map(), Phoenix.Socket.t()) ::
{:ok, Phoenix.Socket.t()}
| {:ok, reply :: map(), Phoenix.Socket.t()}
| {:error, reason :: map()}
channel_join(bitstring(), map(), Phoenix.Socket.t()) :: {:ok, Phoenix.Socket.t()} | {:ok, reply :: map(), Phoenix.Socket.t()} | {:error, reason :: map()}
Link to this callback
presence_identifier(arg1)
presence_identifier(arg1)
presence_identifier(Phoenix.Socket.t()) :: bitstring()
presence_identifier(Phoenix.Socket.t()) :: bitstring()
See Phoenix.Presence.track/4
key
Link to this callback
socket_connect(map, arg2)
socket_connect(map, arg2)
socket_connect(map(), Phoenix.Socket.t()) :: {:ok, Phoenix.Socket.t()} | :error
socket_connect(map(), Phoenix.Socket.t()) :: {:ok, Phoenix.Socket.t()} | :error
Link to this callback
socket_id(arg1)
socket_id(arg1)
socket_id(Phoenix.Socket.t()) :: bitstring()
socket_id(Phoenix.Socket.t()) :: bitstring()