Phoenix.Presence
Phoenix.Presence behaviour
Provides Presence tracking to processes and channels.
This behaviour provides presence features such as fetching presences for a given topic, as well as handling diffs of join and leave events as they occur in real-time. Using this module defines a supervisor and allows the calling module to implement the Phoenix.Tracker
behaviour which starts a tracker process to handle presence information.
Example Usage
Start by defining a presence module within your application which uses Phoenix.Presence
and provide the :otp_app
which holds your configuration, as well as the :pubsub_server
.
defmodule MyApp.Presence do
use Phoenix.Presence, otp_app: :my_app,
pubsub_server: MyAp