Files

19 lines
347 B
Elixir

defmodule NeonVertigoService.Mqtt.Supervisor do
use Supervisor
def start_link(init_arg) do
Supervisor.start_link(__MODULE__, init_arg, name: __MODULE__)
end
# Callbacks
@impl true
def init(_init_arg) do
children = [
NeonVertigoService.Mqtt.Server
]
Supervisor.init(children, strategy: :one_for_all)
end
end