From ba0cb9926bfbcec5902938f331912cad165874f3 Mon Sep 17 00:00:00 2001 From: "aegir[bot]" Date: Mon, 4 Dec 2023 14:24:03 +0000 Subject: [PATCH] docs: update documentation [skip ci] --- classes/PubSubPeerDiscovery.html | 12 ++++++------ functions/pubsubPeerDiscovery-1.html | 2 +- interfaces/PubSubPeerDiscoveryComponents.html | 4 ++-- interfaces/PubsubPeerDiscoveryInit.html | 8 ++++---- variables/TOPIC.html | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/classes/PubSubPeerDiscovery.html b/classes/PubSubPeerDiscovery.html index 81f2088..cd44554 100644 --- a/classes/PubSubPeerDiscovery.html +++ b/classes/PubSubPeerDiscovery.html @@ -1,5 +1,5 @@ PubSubPeerDiscovery | @libp2p/pubsub-peer-discovery

A Peer Discovery Service that leverages libp2p Pubsub to find peers.

-

Hierarchy

Implements

Constructors

Hierarchy

Implements

Constructors

Properties

#private: any
[peerDiscoverySymbol]: true = true
[toStringTag]: "@libp2p/pubsub-peer-discovery" = '@libp2p/pubsub-peer-discovery'
interval: number
intervalId?: Timeout
listenOnly: boolean
log: Logger
topics: string[]

Methods

  • Performs a broadcast via Pubsub publish

    -

    Returns void

  • Type Parameters

    • K extends "peer"

    Parameters

    Returns void

  • Subscribes to the discovery topic on libp2p.pubsub and performs a broadcast +

Constructors

Properties

#private: any
[peerDiscoverySymbol]: true = true
[toStringTag]: "@libp2p/pubsub-peer-discovery" = '@libp2p/pubsub-peer-discovery'
interval: number
intervalId?: Timeout
listenOnly: boolean
log: Logger
topics: string[]

Methods

  • Performs a broadcast via Pubsub publish

    +

    Returns void

  • Type Parameters

    • K extends "peer"

    Parameters

    Returns void

  • Subscribes to the discovery topic on libp2p.pubsub and performs a broadcast immediately, and every this.interval

    -

    Returns void

  • Returns void

  • Parameters

    Returns boolean

  • Parameters

    • type: string

    Returns number

  • Type Parameters

    • K extends "peer"

    Parameters

    Returns void

  • Type Parameters

    • Detail

    Parameters

    • type: "peer"
    • detail: CustomEventInit<Detail>

    Returns boolean

  • Returns void

  • Unsubscribes from the discovery topic

    -

    Returns void

Generated using TypeDoc

\ No newline at end of file +

Returns void

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/pubsubPeerDiscovery-1.html b/functions/pubsubPeerDiscovery-1.html index a70d57a..2046ad1 100644 --- a/functions/pubsubPeerDiscovery-1.html +++ b/functions/pubsubPeerDiscovery-1.html @@ -1 +1 @@ -pubsubPeerDiscovery | @libp2p/pubsub-peer-discovery

Generated using TypeDoc

\ No newline at end of file +pubsubPeerDiscovery | @libp2p/pubsub-peer-discovery

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/PubSubPeerDiscoveryComponents.html b/interfaces/PubSubPeerDiscoveryComponents.html index 15be7a6..bbd2905 100644 --- a/interfaces/PubSubPeerDiscoveryComponents.html +++ b/interfaces/PubSubPeerDiscoveryComponents.html @@ -1,5 +1,5 @@ -PubSubPeerDiscoveryComponents | @libp2p/pubsub-peer-discovery

Interface PubSubPeerDiscoveryComponents

interface PubSubPeerDiscoveryComponents {
    addressManager: AddressManager;
    logger: ComponentLogger;
    peerId: PeerId;
    pubsub?: PubSub<PubSubEvents>;
}

Properties

addressManager +PubSubPeerDiscoveryComponents | @libp2p/pubsub-peer-discovery

Interface PubSubPeerDiscoveryComponents

interface PubSubPeerDiscoveryComponents {
    addressManager: AddressManager;
    logger: ComponentLogger;
    peerId: PeerId;
    pubsub?: PubSub<PubSubEvents>;
}

Properties

addressManager: AddressManager
peerId: PeerId

Generated using TypeDoc

\ No newline at end of file +

Properties

addressManager: AddressManager
peerId: PeerId

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/PubsubPeerDiscoveryInit.html b/interfaces/PubsubPeerDiscoveryInit.html index a8e2b0e..1e7cb59 100644 --- a/interfaces/PubsubPeerDiscoveryInit.html +++ b/interfaces/PubsubPeerDiscoveryInit.html @@ -1,7 +1,7 @@ -PubsubPeerDiscoveryInit | @libp2p/pubsub-peer-discovery
interface PubsubPeerDiscoveryInit {
    interval?: number;
    listenOnly?: boolean;
    topics?: string[];
}

Properties

interval? +PubsubPeerDiscoveryInit | @libp2p/pubsub-peer-discovery
interface PubsubPeerDiscoveryInit {
    interval?: number;
    listenOnly?: boolean;
    topics?: string[];
}

Properties

interval?: number

How often (ms) we should broadcast our infos

-
listenOnly?: boolean

If true, we will not broadcast our peer data

-
topics?: string[]

What topics to subscribe to. If set, the default will NOT be used.

-

Generated using TypeDoc

\ No newline at end of file +
listenOnly?: boolean

If true, we will not broadcast our peer data

+
topics?: string[]

What topics to subscribe to. If set, the default will NOT be used.

+

Generated using TypeDoc

\ No newline at end of file diff --git a/variables/TOPIC.html b/variables/TOPIC.html index 21ea418..d7ed446 100644 --- a/variables/TOPIC.html +++ b/variables/TOPIC.html @@ -1 +1 @@ -TOPIC | @libp2p/pubsub-peer-discovery
TOPIC: "_peer-discovery._p2p._pubsub" = '_peer-discovery._p2p._pubsub'

Generated using TypeDoc

\ No newline at end of file +TOPIC | @libp2p/pubsub-peer-discovery
TOPIC: "_peer-discovery._p2p._pubsub" = '_peer-discovery._p2p._pubsub'

Generated using TypeDoc

\ No newline at end of file