@signalwire/js 4.0.0-dev-20260721161304 → 4.0.0-dev-20260721191222
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.mjs
CHANGED
|
@@ -20207,7 +20207,7 @@ var ClientSessionManager = class extends Destroyable {
|
|
|
20207
20207
|
await this.onBeforeReconnect();
|
|
20208
20208
|
}
|
|
20209
20209
|
}
|
|
20210
|
-
if (
|
|
20210
|
+
if (this.dpopManager?.initialized) try {
|
|
20211
20211
|
dpopToken = await this.dpopManager.createRpcProof({ method: "signalwire.connect" });
|
|
20212
20212
|
} catch (error) {
|
|
20213
20213
|
if (this.clientBound) throw error;
|
|
@@ -20240,6 +20240,7 @@ var ClientSessionManager = class extends Destroyable {
|
|
|
20240
20240
|
});
|
|
20241
20241
|
if (response.protocol) await this.transport.setProtocol(response.protocol);
|
|
20242
20242
|
this._authorization$.next(response.authorization);
|
|
20243
|
+
if (response.authorization.cnf?.jkt) this._wasClientBound = true;
|
|
20243
20244
|
this._iceServers$.next(response.ice_servers ?? []);
|
|
20244
20245
|
this._authState$.next({ kind: "authenticated" });
|
|
20245
20246
|
logger$9.debug("[Session] Authentication completed successfully");
|
|
@@ -20359,6 +20360,14 @@ var ClientSessionWrapper = class {
|
|
|
20359
20360
|
get authenticated() {
|
|
20360
20361
|
return this.clientSessionManager.authenticated;
|
|
20361
20362
|
}
|
|
20363
|
+
/**
|
|
20364
|
+
* Whether the session is using a Client Bound SAT (DPoP). Sticky — set
|
|
20365
|
+
* when the binding is established or restored from a resumed session's
|
|
20366
|
+
* server authorization.
|
|
20367
|
+
*/
|
|
20368
|
+
get clientBound() {
|
|
20369
|
+
return this.clientSessionManager.clientBound;
|
|
20370
|
+
}
|
|
20362
20371
|
get signalingEvent$() {
|
|
20363
20372
|
return this.clientSessionManager.signalingEvent$;
|
|
20364
20373
|
}
|
|
@@ -21840,6 +21849,7 @@ var SignalWire = class extends Destroyable {
|
|
|
21840
21849
|
...this._deps.credential,
|
|
21841
21850
|
...partial
|
|
21842
21851
|
};
|
|
21852
|
+
this.persistCredential(this._deps.credential);
|
|
21843
21853
|
},
|
|
21844
21854
|
persist: (credential) => this.persistCredential(credential)
|
|
21845
21855
|
}
|
|
@@ -22705,9 +22715,10 @@ var SignalWire = class extends Destroyable {
|
|
|
22705
22715
|
this._refreshCoordinator?.destroy();
|
|
22706
22716
|
this._refreshCoordinator = void 0;
|
|
22707
22717
|
this._dpopManager?.destroy();
|
|
22708
|
-
this._clientSession
|
|
22709
|
-
|
|
22710
|
-
this.
|
|
22718
|
+
const session = this._clientSession;
|
|
22719
|
+
session?.teardownSessionState();
|
|
22720
|
+
this._transport?.destroy();
|
|
22721
|
+
session?.destroy();
|
|
22711
22722
|
try {
|
|
22712
22723
|
this._networkMonitor?.destroy();
|
|
22713
22724
|
} catch {}
|