Packages

An Elixir client for the Polymarket API.

Current section

Files

Jump to
ex_polymarket lib supervisor.ex
Raw

lib/supervisor.ex

defmodule Polymarket.Supervisor do
@moduledoc """
Supervisor for the processes to communicate with Polymarket.
"""
use Supervisor
alias Polymarket.WebSocket.SocketSupervisor
@doc false
@spec start_link(term()) :: Supervisor.on_start()
def start_link(_args) do
Supervisor.start_link(__MODULE__, [], name: __MODULE__)
end
@doc false
@impl true
def init(_init_arg) do
children = [
SocketSupervisor
]
Supervisor.init(children, strategy: :one_for_one)
end
end