braid-http 1.3.84 → 1.3.85

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.
@@ -336,6 +336,7 @@ async function braid_fetch (url, params = {}) {
336
336
  if (isFinite(heartbeats)) {
337
337
  let timeout = null
338
338
  on_heartbeat = () => {
339
+ params.heartbeat_cb?.()
339
340
  clearTimeout(timeout)
340
341
  let wait_seconds = 1.2 * heartbeats + 3
341
342
  timeout = setTimeout(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braid-http",
3
- "version": "1.3.84",
3
+ "version": "1.3.85",
4
4
  "description": "An implementation of Braid-HTTP for Node.js and Browsers",
5
5
  "scripts": {
6
6
  "test": "node test/server.js"