Files
elixirAI/lib/elixir_ai_web/utils/live_view_pg.ex
Alex Mickelson 0041c25f19
Some checks failed
CI/CD Pipeline / build (push) Failing after 8s
refactoring folders
2026-03-25 12:05:56 -06:00

17 lines
447 B
Elixir

defmodule ElixirAi.LiveViewPG do
@moduledoc """
Named :pg scope for tracking LiveView processes across the cluster.
Each LiveView joins {:liveview, ViewModule} on connect; :pg syncs membership
automatically and removes dead processes without any additional cleanup.
"""
def child_spec(_opts) do
%{
id: __MODULE__,
start: {:pg, :start_link, [__MODULE__]},
type: :worker,
restart: :permanent
}
end
end