Interface IPeerExchange

Hierarchy

Implemented by

    Properties

    addLibp2pEventListener: (<K>(type, listener, options?) => void)

    Type declaration

      • <K>(type, listener, options?): void
      • Type Parameters

        • K extends keyof Libp2pEvents<ServiceMap>

        Parameters

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

        Returns void

    multicodec: string
    peerStore: PeerStore
    peers: (() => Promise<Peer[]>)

    Type declaration

      • (): Promise<Peer[]>
      • Returns Promise<Peer[]>

    removeLibp2pEventListener: (<K>(type, listener?, options?) => void)

    Type declaration

      • <K>(type, listener?, options?): void
      • Type Parameters

        • K extends keyof Libp2pEvents<ServiceMap>

        Parameters

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

        Returns void

    Methods

    Generated using TypeDoc