lib/realflight_integration.ex

defmodule RealflightIntegration do
  use Supervisor
  require Logger

  def start_link(config) do
    Logger.debug("Start RealflightIntegration Supervisor")
    ViaUtils.Process.start_link_redundant(Supervisor, __MODULE__, config, __MODULE__)
  end

  @impl Supervisor
  def init(config) do
    children = [{RealflightIntegration.SendReceive, config}]

    Supervisor.init(children, strategy: :one_for_one)
  end
end