View Source Bonfire.UI.Common.Presence (Bonfire v0.9.10-classic-beta.156)

WIP for tracking online users. Used by PersistentLive

Summary

Functions

Callback implementation for Phoenix.Presence.fetch/2.

Callback implementation for Phoenix.Presence.get_by_key/2.

Link to this function

handle_info(broadcast, socket)

View Source

Callback implementation for Phoenix.Presence.list/1.

Link to this function

list_and_maybe_subscribe_to_presence(socket)

View Source
Link to this function

present!(socket, meta \\ %{})

View Source

Join a user to the list of those who are present

Link to this function

present?(user_id \\ nil, socket)

View Source

Check if a given user (or the current user) is in the list of those who are present

Link to this function

present_meta(user \\ nil, socket)

View Source
Link to this function

track(socket, key, meta)

View Source

Callback implementation for Phoenix.Presence.track/3.

Link to this function

track(pid, topic, key, meta)

View Source

Callback implementation for Phoenix.Presence.track/4.

Callback implementation for Phoenix.Presence.untrack/2.

Link to this function

untrack(pid, topic, key)

View Source

Callback implementation for Phoenix.Presence.untrack/3.

Link to this function

update(socket, key, meta)

View Source

Callback implementation for Phoenix.Presence.update/3.

Link to this function

update(pid, topic, key, meta)

View Source

Callback implementation for Phoenix.Presence.update/4.