Current section

Files

Jump to
live_debugger lib live_debugger app.ex
Raw

lib/live_debugger/app.ex

defmodule LiveDebugger.App do
@moduledoc """
Managing web LiveDebugger app.
"""
@pubsub_name LiveDebugger.Env.endpoint_pubsub_name()
@spec append_app_children(children :: list()) :: list()
def append_app_children(children) do
pubsub =
Supervisor.child_spec({Phoenix.PubSub, name: @pubsub_name}, id: @pubsub_name)
children ++
[
pubsub,
{LiveDebugger.App.Web.EndpointStarter,
[
check_origin: false,
pubsub_server: @pubsub_name
]}
]
end
end