Packages

Elixir Websocket Server - Kitchen Sink Not Included

Current section

Files

Jump to
exws lib supervisor.ex
Raw

lib/supervisor.ex

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