Current section

Files

Jump to
live_debugger lib live_debugger services client_communicator supervisor.ex
Raw

lib/live_debugger/services/client_communicator/supervisor.ex

defmodule LiveDebugger.Services.ClientCommunicator.Supervisor do
@moduledoc """
Supervisor for `ClientCommunicator` service.
"""
use Supervisor
alias LiveDebugger.Services.ClientCommunicator.GenServers.ClientCommunicator
def start_link(opts \\ []) do
Supervisor.start_link(__MODULE__, opts, name: __MODULE__)
end
@impl true
def init(_opts) do
children = [ClientCommunicator]
Supervisor.init(children, strategy: :one_for_one)
end
end