defy.tools

Class RelayPool

Constructors

Properties

console: {
    debug: ((message?, ...optionalParams) => void);
    error: ((message?, ...optionalParams) => void);
    info: ((message?, ...optionalParams) => void);
    log: ((message?, ...optionalParams) => void);
    logs: any[];
    warn: ((message?, ...optionalParams) => void);
} = ...

Type declaration

  • debug: ((message?, ...optionalParams) => void)
      • (message?, ...optionalParams): void
      • Parameters

        • Optional message: any
        • Rest ...optionalParams: any[]

        Returns void

  • error: ((message?, ...optionalParams) => void)
      • (message?, ...optionalParams): void
      • Parameters

        • Optional message: any
        • Rest ...optionalParams: any[]

        Returns void

  • info: ((message?, ...optionalParams) => void)
      • (message?, ...optionalParams): void
      • Parameters

        • Optional message: any
        • Rest ...optionalParams: any[]

        Returns void

  • log: ((message?, ...optionalParams) => void)
      • (message?, ...optionalParams): void
      • Parameters

        • Optional message: any
        • Rest ...optionalParams: any[]

        Returns void

  • logs: any[]
  • warn: ((message?, ...optionalParams) => void)
      • (message?, ...optionalParams): void
      • Parameters

        • Optional message: any
        • Rest ...optionalParams: any[]

        Returns void

relays: RelayPoolItem[] = []
subs: Map<string, NostrRelaySubscription> = ...

Methods

  • Parameters

    • url: string
    • read: boolean
    • write: boolean
    • webWorker: boolean = true

    Returns void

  • Parameters

    • eventIds: string[]

    Returns Observable<Event<number>>

  • Parameters

    • ev: MessageEvent<any>
    • url: string

    Returns void

  • Parameters

    • clearTextEvent: UnsignedEvent

    Returns Observable<Event<number>>