How to Create a Basic PubSub Application: Difference between revisions
From ElixirBlocks
(Created page with "{{In progress}}") |
No edit summary |
||
| Line 1: | Line 1: | ||
{{In progress}} | {{In progress}} | ||
'''lib/app_name/application.ex''' | |||
<source> | |||
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 | |||
</source> | |||
Revision as of 06:09, 7 May 2023
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