How to Create a Basic PubSub Application

From ElixirBlocks
Revision as of 06:09, 7 May 2023 by Admin (talk | contribs)
Jump to: navigation, search

This page is in progress


lib/app_name/application.ex



def start(_type, _args) do
    children = [
      # Start the Telemetry supervisor
      AppWeb.Telemetry,
      # Start the Ecto repository
      App.Repo,
      # Start the PubSub system
      {Phoenix.PubSub, name: App.PubSub},

    ]

...
end