@ai4b-team/fsaos-gateway-sdk 3.38.1 → 3.39.0
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 +19 -0
- package/dist/iife/gateway.js +4 -4
- package/dist/iife/gateway.js.map +4 -4
- package/dist/iife/ui.js +1 -1
- package/dist/index.cjs +263 -98
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -3
- package/dist/index.d.ts +24 -3
- package/dist/index.js +263 -99
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -348,3 +348,22 @@ coalesced item-change events and reconnects, with no polling.
|
|
|
348
348
|
|
|
349
349
|
Requires the `personal-sections` kernel method from migration `0793523446ad`.
|
|
350
350
|
Projects are protocol-ready; a consumer must supply its Project UI separately.
|
|
351
|
+
|
|
352
|
+
### Bound browser read traffic
|
|
353
|
+
|
|
354
|
+
Hosts sharing the SDK's QueryClient can opt into transport scheduling before mounting readers:
|
|
355
|
+
|
|
356
|
+
```ts
|
|
357
|
+
configureGatewayReads({ concurrency: 6, timeoutMs: 15_000, onTiming: recordTiming });
|
|
358
|
+
useInfiniteItems(filter, { priority: 'foreground' });
|
|
359
|
+
gatewayCall('query', params, { signal, priority: 'background' });
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
Equivalent in-flight reads share one transport request, scoped by credentials,
|
|
363
|
+
session generation, hostname, and effective parameters. Each observer receives its
|
|
364
|
+
own result object and may cancel independently. The last cancellation aborts the
|
|
365
|
+
fetch; identity reset cancels queued and active reads. The deadline includes queue
|
|
366
|
+
time. `onTiming` reports only method, priority, queue/request duration and outcome.
|
|
367
|
+
Commands, writes, materializing queries and subscriptions bypass the queue. The
|
|
368
|
+
scheduler never retries a request; retry/cooldown policy remains with the host's
|
|
369
|
+
existing QueryClient. Without configuration, transport behavior is unchanged.
|