NostrRelayOptions: {
    domain?: string;
    eventHandlingResultCacheTtl?: number;
    filterResultCacheTtl?: number;
    hostname?: string;
    logger?: Logger;
    logLevel?: LogLevel;
    maxSubscriptionsPerClient?: number;
}

Options for NostrRelay

Type declaration

  • Optionaldomain?: string

    Domain name of the Nostr Relay server. If not set, NIP-42 is not enabled. More info: https://github.com/nostr-protocol/nips/blob/master/42.md

    Use hostname instead

  • OptionaleventHandlingResultCacheTtl?: number

    TTL for event handling result cache in milliseconds. Default: 600000

  • OptionalfilterResultCacheTtl?: number

    TTL for filter result cache in milliseconds. Default: 1000

  • Optionalhostname?: string

    Hostname of the Nostr Relay server. If not set, NIP-42 is not enabled. More info: https://github.com/nostr-protocol/nips/blob/master/42.md

  • Optionallogger?: Logger

    Logger to use. Default: ConsoleLoggerService

  • OptionallogLevel?: LogLevel

    The minimum log level to log. Default: LogLevel.INFO

  • OptionalmaxSubscriptionsPerClient?: number

    Maximum number of subscriptions per client. Default: 20