Class WakuNode

Hierarchy

  • WakuNode

Implements

Constructors

Properties

filter?: WakuFilter
libp2p: Libp2p
lightPush?: WakuLightPush
pingKeepAliveTimers: { [peer: string]: ReturnType<typeof setInterval> }

Type declaration

  • [peer: string]: ReturnType<typeof setInterval>
relay?: WakuRelay
relayKeepAliveTimers: { [peer: string]: ReturnType<typeof setInterval> }

Type declaration

  • [peer: string]: ReturnType<typeof setInterval>
store?: WakuStore

Methods

  • Add peer to address book, it will be auto-dialed in the background.

    Parameters

    • peerId: string | PeerId
    • multiaddrs: Multiaddr[] | string[]

    Returns Promise<void>

  • Dials to the provided peer.

    Parameters

    • peer: PeerId | Multiaddr

      The peer to dial

    • Optional protocols: Protocols[]

      Waku protocols we expect from the peer; Default to Relay

    Returns Promise<Stream>

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

    Throws

    if libp2p is not listening on localhost.

    Returns string

  • Parameters

    • peerId: PeerId
    • pingPeriodSecs: number
    • relayPeriodSecs: number

    Returns void

  • Parameters

    • peerId: PeerId

    Returns void

Generated using TypeDoc