Packages

Idiomatic Elixir SDK for Rockbox — pipe-friendly, builder-friendly, with real-time event subscriptions and a plugin system.

Current section

Files

Jump to
rockbox_ex lib rockbox application.ex
Raw

lib/rockbox/application.ex

defmodule Rockbox.Application do
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
{Registry, keys: :duplicate, name: Rockbox.Subscribers},
{Registry, keys: :unique, name: Rockbox.Sockets},
{DynamicSupervisor, strategy: :one_for_one, name: Rockbox.SocketSupervisor},
Rockbox.Plugins
]
Supervisor.start_link(children, strategy: :one_for_one, name: Rockbox.Supervisor)
end
end