braid-http 1.3.69 → 1.3.71
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 +2 -1
- package/package.json +1 -1
package/braid-http-client.js
CHANGED
|
@@ -123,6 +123,7 @@ var normal_fetch,
|
|
|
123
123
|
if (is_nodejs) {
|
|
124
124
|
// Nodejs
|
|
125
125
|
normal_fetch = typeof fetch !== 'undefined' && fetch
|
|
126
|
+
braid_fetch.enable_multiplex = false
|
|
126
127
|
} else {
|
|
127
128
|
// Web Browser
|
|
128
129
|
normal_fetch = window.fetch
|
|
@@ -339,7 +340,7 @@ async function braid_fetch (url, params = {}) {
|
|
|
339
340
|
clearTimeout(timeout)
|
|
340
341
|
let wait_seconds = 1.2 * heartbeats + 3
|
|
341
342
|
timeout = setTimeout(() => {
|
|
342
|
-
on_error(new Error(`heartbeat seen in ${wait_seconds.toFixed(2)}s`))
|
|
343
|
+
on_error(new Error(`heartbeat not seen in ${wait_seconds.toFixed(2)}s`))
|
|
343
344
|
}, wait_seconds * 1000)
|
|
344
345
|
}
|
|
345
346
|
on_heartbeat()
|