Hierarchy

  • TypedEventEmitter<PeerDiscoveryEvents>
    • LocalPeerCacheDiscovery

Implements

  • PeerDiscovery
  • Startable

Constructors

Properties

#private: any
components: Components
isStarted: boolean
options?: LocalPeerCacheDiscoveryOptions
peers: LocalStoragePeerInfo[] = []

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