Parse options and expose function to return bootstrap peer addresses.

Hierarchy

  • EventEmitter<PeerDiscoveryEvents>
    • PeerDiscoveryDns

Implements

  • PeerDiscovery

Constructors

Properties

#private: any
_options: DnsDiscOptions
_started: boolean
nextPeer: undefined | (() => AsyncGenerator<IEnr, any, unknown>)

Type declaration

    • (): AsyncGenerator<IEnr, any, unknown>
    • Returns AsyncGenerator<IEnr, any, unknown>

Accessors

Methods

  • Type Parameters

    • K extends "peer"

    Parameters

    • type: K
    • listener: null | EventHandler<PeerDiscoveryEvents[K]>
    • Optional options: boolean | AddEventListenerOptions

    Returns void

  • Parameters

    • event: Event

    Returns boolean

  • Parameters

    • type: string

    Returns number

  • Type Parameters

    • K extends "peer"

    Parameters

    • type: K
    • Optional listener: null | EventHandler<PeerDiscoveryEvents[K]>
    • Optional options: boolean | EventListenerOptions

    Returns void

  • Type Parameters

    • Detail

    Parameters

    • type: "peer"
    • detail: CustomEventInit<Detail>

    Returns boolean

Generated using TypeDoc