@signalwire/js 4.0.0-dev-20260721161304 → 4.0.0-dev-20260722194940
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/browser.mjs +15 -4
- package/dist/browser.mjs.map +1 -1
- package/dist/browser.umd.js +15 -4
- package/dist/browser.umd.js.map +1 -1
- package/dist/index.cjs +15 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +6 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +15 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/browser.umd.js
CHANGED
|
@@ -20213,7 +20213,7 @@ var ClientSessionManager = class extends Destroyable {
|
|
|
20213
20213
|
await this.onBeforeReconnect();
|
|
20214
20214
|
}
|
|
20215
20215
|
}
|
|
20216
|
-
if (
|
|
20216
|
+
if (this.dpopManager?.initialized) try {
|
|
20217
20217
|
dpopToken = await this.dpopManager.createRpcProof({ method: "signalwire.connect" });
|
|
20218
20218
|
} catch (error) {
|
|
20219
20219
|
if (this.clientBound) throw error;
|
|
@@ -20246,6 +20246,7 @@ var ClientSessionManager = class extends Destroyable {
|
|
|
20246
20246
|
});
|
|
20247
20247
|
if (response.protocol) await this.transport.setProtocol(response.protocol);
|
|
20248
20248
|
this._authorization$.next(response.authorization);
|
|
20249
|
+
if (response.authorization.cnf?.jkt) this._wasClientBound = true;
|
|
20249
20250
|
this._iceServers$.next(response.ice_servers ?? []);
|
|
20250
20251
|
this._authState$.next({ kind: "authenticated" });
|
|
20251
20252
|
logger$9.debug("[Session] Authentication completed successfully");
|
|
@@ -20365,6 +20366,14 @@ var ClientSessionWrapper = class {
|
|
|
20365
20366
|
get authenticated() {
|
|
20366
20367
|
return this.clientSessionManager.authenticated;
|
|
20367
20368
|
}
|
|
20369
|
+
/**
|
|
20370
|
+
* Whether the session is using a Client Bound SAT (DPoP). Sticky — set
|
|
20371
|
+
* when the binding is established or restored from a resumed session's
|
|
20372
|
+
* server authorization.
|
|
20373
|
+
*/
|
|
20374
|
+
get clientBound() {
|
|
20375
|
+
return this.clientSessionManager.clientBound;
|
|
20376
|
+
}
|
|
20368
20377
|
get signalingEvent$() {
|
|
20369
20378
|
return this.clientSessionManager.signalingEvent$;
|
|
20370
20379
|
}
|
|
@@ -21846,6 +21855,7 @@ var SignalWire = class extends Destroyable {
|
|
|
21846
21855
|
...this._deps.credential,
|
|
21847
21856
|
...partial
|
|
21848
21857
|
};
|
|
21858
|
+
this.persistCredential(this._deps.credential);
|
|
21849
21859
|
},
|
|
21850
21860
|
persist: (credential) => this.persistCredential(credential)
|
|
21851
21861
|
}
|
|
@@ -22711,9 +22721,10 @@ var SignalWire = class extends Destroyable {
|
|
|
22711
22721
|
this._refreshCoordinator?.destroy();
|
|
22712
22722
|
this._refreshCoordinator = void 0;
|
|
22713
22723
|
this._dpopManager?.destroy();
|
|
22714
|
-
this._clientSession
|
|
22715
|
-
|
|
22716
|
-
this.
|
|
22724
|
+
const session = this._clientSession;
|
|
22725
|
+
session?.teardownSessionState();
|
|
22726
|
+
this._transport?.destroy();
|
|
22727
|
+
session?.destroy();
|
|
22717
22728
|
try {
|
|
22718
22729
|
this._networkMonitor?.destroy();
|
|
22719
22730
|
} catch {}
|