@seatlayer/js 0.73.0 → 0.74.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/dist/index.cjs +76 -53
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +72 -49
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -249,7 +249,8 @@ declare function createBuyerAccessContext(options: {
|
|
|
249
249
|
* - compact `{default, exceptions}` snapshot reconstruction;
|
|
250
250
|
* - `sv.<n>` resume, handling BOTH outcomes (a `resumed` delta or a full
|
|
251
251
|
* snapshot) on every reconnect;
|
|
252
|
-
* - close code 4401
|
|
252
|
+
* - close code 4401 distinguishes an expired session (refresh/reconnect) from
|
|
253
|
+
* a genuinely revoked one (typed terminal state, never a reconnect loop);
|
|
253
254
|
* - liveness by ping/pong only. Silence is normal and carries no information
|
|
254
255
|
* (protocol doc §5) — a quiet socket is never treated as a dead one.
|
|
255
256
|
*/
|
|
@@ -306,7 +307,7 @@ interface BuyerRealtimeOptions {
|
|
|
306
307
|
/** Mint a one-use ticket for THIS connection attempt. Returns null for the
|
|
307
308
|
* anonymous public case (no ticket needed). Throwing stops the client. */
|
|
308
309
|
mintTicket?: () => Promise<SubscribeTicket | null>;
|
|
309
|
-
/** Typed access states. 4401
|
|
310
|
+
/** Typed terminal access states. A 4401 `access_expired` close reconnects. */
|
|
310
311
|
onAccessUnavailable?: (event: BuyerAccessUnavailableEvent) => void;
|
|
311
312
|
/** Test seam. Defaults to the global WebSocket. */
|
|
312
313
|
socketFactory?: (url: string, protocols: string[]) => WebSocket;
|
package/dist/index.d.ts
CHANGED
|
@@ -249,7 +249,8 @@ declare function createBuyerAccessContext(options: {
|
|
|
249
249
|
* - compact `{default, exceptions}` snapshot reconstruction;
|
|
250
250
|
* - `sv.<n>` resume, handling BOTH outcomes (a `resumed` delta or a full
|
|
251
251
|
* snapshot) on every reconnect;
|
|
252
|
-
* - close code 4401
|
|
252
|
+
* - close code 4401 distinguishes an expired session (refresh/reconnect) from
|
|
253
|
+
* a genuinely revoked one (typed terminal state, never a reconnect loop);
|
|
253
254
|
* - liveness by ping/pong only. Silence is normal and carries no information
|
|
254
255
|
* (protocol doc §5) — a quiet socket is never treated as a dead one.
|
|
255
256
|
*/
|
|
@@ -306,7 +307,7 @@ interface BuyerRealtimeOptions {
|
|
|
306
307
|
/** Mint a one-use ticket for THIS connection attempt. Returns null for the
|
|
307
308
|
* anonymous public case (no ticket needed). Throwing stops the client. */
|
|
308
309
|
mintTicket?: () => Promise<SubscribeTicket | null>;
|
|
309
|
-
/** Typed access states. 4401
|
|
310
|
+
/** Typed terminal access states. A 4401 `access_expired` close reconnects. */
|
|
310
311
|
onAccessUnavailable?: (event: BuyerAccessUnavailableEvent) => void;
|
|
311
312
|
/** Test seam. Defaults to the global WebSocket. */
|
|
312
313
|
socketFactory?: (url: string, protocols: string[]) => WebSocket;
|