Registry-backed access point for UI sessions.
Plugins and background workers use this module to update UI state without knowing whether the UI is rendered by the TUI, LiveView, or tests.
Summary
Functions
Returns a specification to start this module under a supervisor.
Intentional facade for the public Vibe API boundary.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec dispatch(String.t(), Vibe.UI.Command.t() | atom() | {atom(), map()}) :: :ok | {:error, :not_found}
@spec notify_all( Vibe.UI.Notification.t() | map() | keyword() | String.t(), keyword() ) :: :ok
@spec register(String.t(), GenServer.server()) :: :ok
@spec server(String.t()) :: {:ok, GenServer.server()} | {:error, :not_found}
Intentional facade for the public Vibe API boundary.
@spec start_link(keyword()) :: GenServer.on_start()
@spec unregister(String.t(), GenServer.server()) :: :ok