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.
- package/braid-http-client.js +1 -0
- package/package.json +1 -1
package/braid-http-client.js
CHANGED
|
@@ -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(() => {
|