Packages

A Nostr client library for Elixir. Uses `nostr_lib` and `mint` to connect to relays, send events, and subscribe to relays.

Current section

Files

Jump to
nostr_ex lib application.ex
Raw

lib/application.ex

defmodule NostrEx.Application do
use Application
def start(_type, _args) do
children = [
{DynamicSupervisor, name: NostrEx.RelayManager, strategy: :one_for_one},
{Registry,
[keys: :duplicate, name: NostrEx.PubSub, partitions: System.schedulers_online()]},
{Registry, [keys: :unique, name: NostrEx.RelayRegistry]},
{NostrEx.RelayAgent, %{}}
]
Supervisor.start_link(children, strategy: :one_for_one)
end
def get_relays() do
Application.get_env(:nostr_ex, :relays)
end
end