Nostr.Event.RecommendRelay (Nostr Lib v0.2.1) (event) (nip01)

View Source
This module is deprecated. This event kind is no longer recommended.

Recommend server

DEPRECATED - This event kind is no longer recommended

Defined in NIP 01 https://github.com/nostr-protocol/nips/blob/master/01.md

Summary

Functions

Parses a kind 2 event into a RecommendRelay struct with the relay URL. Logs a deprecation warning.

Types

t()

@type t() :: %Nostr.Event.RecommendRelay{
  event: Nostr.Event.t(),
  relay: URI.t(),
  user: <<_::32, _::_*8>>
}

Functions

parse(event)

@spec parse(event :: Nostr.Event.t()) :: t()

Parses a kind 2 event into a RecommendRelay struct with the relay URL. Logs a deprecation warning.