Pass a list of multiaddr that will be used to bootstrap a node.

Hierarchy

  • EventEmitter<PeerDiscoveryEvents>

    Hierarchy

    • PeerDiscoveryStaticPeers

Implements

  • PeerDiscovery

Constructors

Properties

#private: any
interval: number
peers: PeerInfo[]
timer?: Timer
DefaultInterval: number = 200

Accessors

Methods

  • Type Parameters

    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

    Type Parameters

    • K extends "peer"

    Parameters

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

    Returns void

Generated using TypeDoc