braid-http 1.3.103 → 1.3.104
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/README.md +8 -0
- package/braid-http-server.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -376,6 +376,14 @@ braid_fetch('/example', {multiplex: false, subscription: true})
|
|
|
376
376
|
braid_fetch('/example', {multiplex: {after: 1}, subscription: true})
|
|
377
377
|
```
|
|
378
378
|
|
|
379
|
+
Note that this library implements [optimistic multiplexing](https://braid.org/protocol/multiplexing#optimistic-creation), which is faster, but can print this harmless error message to your JS console:
|
|
380
|
+
|
|
381
|
+
```
|
|
382
|
+
GET /foo 424 (Multiplexer no exist; consider trying again)
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
You can ignore this message.
|
|
386
|
+
|
|
379
387
|
### Server
|
|
380
388
|
|
|
381
389
|
Configure mutliplexing with:
|
package/braid-http-server.js
CHANGED
|
@@ -406,7 +406,7 @@ function braidify (req, res, next) {
|
|
|
406
406
|
free_cors(res)
|
|
407
407
|
|
|
408
408
|
req.is_multiplexer = res.is_multiplexer = true
|
|
409
|
-
res.writeHead(424, 'Multiplexer no exist', {'Bad-Multiplexer': multiplexer})
|
|
409
|
+
res.writeHead(424, 'Multiplexer no exist; cosnsider trying again', {'Bad-Multiplexer': multiplexer})
|
|
410
410
|
return res.end(`multiplexer ${multiplexer} does not exist`)
|
|
411
411
|
}
|
|
412
412
|
|