View Source Nostr.RelaySocket (Nostr v0.1.3)
Link to this section Summary
Link to this section Functions
@spec start_link(list()) :: GenServer.on_start()
Creates a socket to a relay
examples
Examples
iex> Nostr.RelaySocket.start_link("wss://relay.nostr.pro")
@spec subscribe_deletions(pid(), [K256.Schnorr.verifying_key()], integer()) :: atom()
@spec subscribe_encrypted_direct_messages( pid(), K256.Schnorr.verifying_key(), integer() ) :: atom()
@spec subscribe_notes(pid(), [K256.Schnorr.verifying_key()], integer()) :: atom()
@spec subscribe_reactions(pid(), [K256.Schnorr.verifying_key()], integer()) :: atom()
@spec subscribe_reposts(pid(), [K256.Schnorr.verifying_key()], integer()) :: atom()
Revokes a subscription from a relay