braid-http 1.3.97 → 1.3.98

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.
@@ -1086,7 +1086,8 @@ async function create_multiplexer(origin, mux_key, params, mux_params, attempt)
1086
1086
  var mux_created_promise = (async () => {
1087
1087
  // attempt to establish a multiplexed connection
1088
1088
  try {
1089
- if (mux_params?.via === 'POST'
1089
+ // Disable MULTIPLEX method for now — go straight to POST
1090
+ if (true || mux_params?.via === 'POST'
1090
1091
  || multiplex_fetch.post_only?.has(origin)) throw 'skip multiplex method'
1091
1092
  var r = await braid_fetch(`${origin}/${multiplexer}`, {
1092
1093
  signal: mux_aborter.signal,
@@ -1137,7 +1138,7 @@ async function create_multiplexer(origin, mux_key, params, mux_params, attempt)
1137
1138
  // and send messages to the appropriate requests
1138
1139
  parse_multiplex_stream(r.body.getReader(), async (request, bytes) => {
1139
1140
  if (requests.has(request)) requests.get(request)(bytes)
1140
- else try_deleting_request(request)
1141
+ else try_deleting_request(request).catch(e => {})
1141
1142
  }, e => cleanup_multiplexer(e))
1142
1143
  })()
1143
1144
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braid-http",
3
- "version": "1.3.97",
3
+ "version": "1.3.98",
4
4
  "description": "An implementation of Braid-HTTP for Node.js and Browsers",
5
5
  "scripts": {
6
6
  "test": "node test/test.js",