Jido.Chat.Discord.NostrumGatewayListener (Jido Chat Discord v1.0.0)

Copy Markdown View Source

Bridge-scoped subscriber for Nostrum.ConsumerGroup gateway events.

Selected events are normalized and pushed into NostrumGatewayBuffer, where Jido.Chat.Discord.GatewayWorker can consume them through event_source_mfa.

Summary

Functions

Returns a specification to start this module under a supervisor.

Types

state()

@type state() :: %{
  bridge_id: String.t(),
  join_fun: (pid() -> :ok | term()),
  event_names: MapSet.t(String.t())
}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)

@spec start_link(keyword()) :: GenServer.on_start()

whereis(bridge_id)

@spec whereis(String.t()) :: pid() | nil