Packages

Discover devices on your network that use the SSDP (Simple Service Discovery Protocol)

Current section

Files

Jump to
ssdp lib ssdp supervisor.ex
Raw

lib/ssdp/supervisor.ex

defmodule SSDP.Supervisor do
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
children = [
supervisor(Registry, [:duplicate, SSDP.Registry, []]),
worker(SSDP.Client, []),
]
supervise(children, strategy: :one_for_one)
end
end