@dxos/broadcast
Advanced tools
Comparing version 1.0.0-beta.0 to 1.0.0-beta.1
@@ -124,3 +124,3 @@ "use strict"; | ||
}; | ||
return this._publish(packet); | ||
return this._publish(packet, options); | ||
} | ||
@@ -182,2 +182,3 @@ /** | ||
* @param {Packet} packet | ||
* @param {Object} options | ||
* @returns {Promise<Packet>} | ||
@@ -187,3 +188,3 @@ */ | ||
async _publish(packet) { | ||
async _publish(packet, options = {}) { | ||
if (!this._running) return; | ||
@@ -212,3 +213,3 @@ | ||
await this._send(packetEncoded, peer); | ||
await this._send(packetEncoded, peer, options); | ||
} catch (err) { | ||
@@ -215,0 +216,0 @@ this.emit('send-error', err); |
{ | ||
"name": "@dxos/broadcast", | ||
"version": "1.0.0-beta.0", | ||
"version": "1.0.0-beta.1", | ||
"description": "Abstract module to send broadcast messages.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/dxos/broadcast#readme", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72675
399