Hierarchy

  • WakuNode

Implements

Constructors

Properties

filter?: IFilter
libp2p: Libp2p
lightPush?: ILightPush
peerExchange?: IPeerExchange
pingKeepAliveTimers: {
    [peer: string]: ReturnType<typeof setInterval>;
}

Type declaration

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

Type declaration

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

Methods

  • Dials to the provided peer.

    Parameters

    • peer: PeerId | Multiaddr

      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.

    Throws

    if libp2p is not listening on localhost.

    Returns string

  • Parameters

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

    Returns void

Generated using TypeDoc