Hierarchy

  • BaseProtocol
    • FilterCore

Implements

Constructors

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

handleIncomingMessage: ((pubsubTopic, wakuMessage, peerIdStr) => Promise<void>)

Type declaration

    • (pubsubTopic, wakuMessage, peerIdStr): Promise<void>
    • Parameters

      • pubsubTopic: string
      • wakuMessage: WakuMessage
      • peerIdStr: string

      Returns Promise<void>

multicodec: string
pubsubTopics: string[]
removeLibp2pEventListener: {
    <K>(type, listener?, options?): void;
    (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

    • (type, listener?, options?): void
    • Parameters

      • type: string
      • Optional listener: EventHandler<Event>
      • Optional options: boolean | EventListenerOptions

      Returns void

streamManager: StreamManager

Accessors

Methods

  • Returns known peers from the address book (libp2p.peerStore) that support the class protocol. Waku may or may not be currently connected to these peers.

    Returns Promise<Peer[]>

  • Retrieves a list of connected peers that support the protocol. The list is sorted by latency.

    Parameters

    • __namedParameters: {
          maxBootstrapPeers: number;
          numPeers: number;
      } = ...
      • maxBootstrapPeers: number
      • numPeers: number

    Returns Promise<Peer[]>

    A list of peers that support the protocol sorted by latency.

Generated using TypeDoc