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.
OptionalbatchPublish
batchPublish?:boolean
serialize message once and send to all peers without control messages
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.