libp2p
    Preparing search index...
    interface PublishOpts {
        allowPublishToZeroTopicPeers?: boolean;
        batchPublish?: boolean;
        ignoreDuplicatePublishError?: boolean;
    }
    Index

    Properties

    allowPublishToZeroTopicPeers?: boolean

    Do not throw PublishError.NoPeersSubscribedToTopic error if there are no peers listening on the topic.

    N.B. if you sent this option to true, and you publish a message on a topic with no peers listening on that topic, no other network node will ever receive the message.

    batchPublish?: boolean

    serialize message once and send to all peers without control messages

    ignoreDuplicatePublishError?: boolean