defmodule DaProductApp.TCP.Supervisor do use Supervisor def start_link(opts) do Supervisor.start_link(__MODULE__, opts, name: __MODULE__) end def init(opts) do children = [ {DaProductApp.TCP.Server, opts} ] Supervisor.init(children, strategy: :one_for_one) end end