Application-provided shared-mode participant session metadata.
Put participant metadata under session_key/0 in the LiveView session. The
runtime reads only viewer_id, role, capabilities, and optional
region_id; authentication and display data stay with the application.
Missing shared-mode roles resolve to :viewer unless the runtime caller
passes another :default_role.
Summary
Functions
Extracts participant runtime options from a LiveView session.
Returns a LiveView session map containing shared participant metadata.
Participant fields LivePanels reads from the application session payload.
Session key used for app-provided shared-mode participant metadata.
Types
Functions
@spec participant_options(map(), String.t(), keyword()) :: {:ok, participant_options()} | {:error, {atom(), String.t(), term()}}
Extracts participant runtime options from a LiveView session.
@spec participant_options!(map(), String.t(), keyword()) :: participant_options()
Bang variant of participant_options/3.
Returns a LiveView session map containing shared participant metadata.
@spec session_fields() :: [:viewer_id | :role | :capabilities | :region_id]
Participant fields LivePanels reads from the application session payload.
@spec session_key() :: String.t()
Session key used for app-provided shared-mode participant metadata.