Documentation
    Preparing search index...

    Interface RelayEntry

    A single relay entry parsed from a NIP-65 kind-10002 r tag.

    const entry: RelayEntry = { url: 'wss://relay.example.com', read: true, write: false };
    
    interface RelayEntry {
        read: boolean;
        url: string;
        write: boolean;
    }
    Index

    Properties

    Properties

    read: boolean

    Whether the author reads (receives events) from this relay.

    url: string

    Relay WebSocket URL from the r tag's second element.

    write: boolean

    Whether the author writes (publishes events) to this relay.