@hive-p2p/browser 1.0.70 → 1.0.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/node.mjs +2 -2
- package/hive-p2p.min.js +3 -3
- package/index.mjs +3 -2
- package/package.json +1 -1
package/core/node.mjs
CHANGED
|
@@ -164,10 +164,10 @@ export class Node {
|
|
|
164
164
|
* @param {string | Uint8Array | Object} data @param {string} [targetId] default: broadcast to all
|
|
165
165
|
* @param {number} [timestamp] default: CLOCK.time
|
|
166
166
|
* @param {Object} [options]
|
|
167
|
-
* @param {string} [options.
|
|
167
|
+
* @param {string} [options.topic] default: 'gossip'
|
|
168
168
|
* @param {number} [options.HOPS] default: GOSSIP.HOPS[topic] || GOSSIP.HOPS.default */
|
|
169
169
|
broadcast(data, options = {}) {
|
|
170
|
-
const {
|
|
170
|
+
const { topic, HOPS } = options;
|
|
171
171
|
return this.gossip.broadcastToAll(data, topic, HOPS);
|
|
172
172
|
}
|
|
173
173
|
|