Hierarchy

  • TypedEventEmitter<PeerDiscoveryEvents>
    • PeerExchangeDiscovery

Implements

  • PeerDiscovery

Constructors

Properties

#private: any
components: Components
isStarted: boolean
options: Options
peerExchange: WakuPeerExchange
queryAttempts: Map<string, number> = ...
queryingPeers: Set<string> = ...

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"
    • Optional detail: CustomEventInit<Detail>

    Returns boolean

Generated using TypeDoc