Implements

Constructors

Properties

connectionManager: waku.ConnectionManager
filter?: IFilter
libp2p: Libp2p
lightPush?: ILightPush
pubsubTopics: string[]
relay?: IRelay
store?: IStore

Methods

  • Dials to the provided peer.

    Parameters

    • peer: PeerId | MultiaddrInput

      The peer to dial

    • Optional protocols: Protocols[]

      Waku protocols we expect from the peer; Defaults to mounted protocols

    Returns Promise<Stream>

  • Return the local multiaddr with peer id on which libp2p is listening.

    Returns string

    Throws

    if libp2p is not listening on localhost.