@unicitylabs/sphere-sdk 0.7.1-dev.2 → 0.7.1
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 +63 -77
- package/dist/core/index.cjs +771 -118
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +187 -6
- package/dist/core/index.d.ts +187 -6
- package/dist/core/index.js +770 -118
- package/dist/core/index.js.map +1 -1
- package/dist/impl/browser/index.cjs +11 -0
- package/dist/impl/browser/index.cjs.map +1 -1
- package/dist/impl/browser/index.js +11 -0
- package/dist/impl/browser/index.js.map +1 -1
- package/dist/impl/nodejs/index.cjs +11 -0
- package/dist/impl/nodejs/index.cjs.map +1 -1
- package/dist/impl/nodejs/index.d.cts +10 -1
- package/dist/impl/nodejs/index.d.ts +10 -1
- package/dist/impl/nodejs/index.js +11 -0
- package/dist/impl/nodejs/index.js.map +1 -1
- package/dist/index.cjs +899 -118
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +258 -1
- package/dist/index.d.ts +258 -1
- package/dist/index.js +881 -118
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -24787,6 +24787,17 @@ var NostrTransportProvider = class _NostrTransportProvider {
|
|
|
24787
24787
|
getStorageAdapter() {
|
|
24788
24788
|
return this.storage;
|
|
24789
24789
|
}
|
|
24790
|
+
/**
|
|
24791
|
+
* Get the underlying NostrClient (or null if not yet connected).
|
|
24792
|
+
*
|
|
24793
|
+
* Exposed so {@link MultiAddressTransportMux} can share the same
|
|
24794
|
+
* client/socket pair instead of opening a duplicate WebSocket per
|
|
24795
|
+
* relay (#123). The transport owns the client's lifecycle — callers
|
|
24796
|
+
* MUST NOT call {@code disconnect()} on the returned instance.
|
|
24797
|
+
*/
|
|
24798
|
+
getNostrClient() {
|
|
24799
|
+
return this.nostrClient;
|
|
24800
|
+
}
|
|
24790
24801
|
/**
|
|
24791
24802
|
* Suppress event subscriptions — unsubscribe wallet/chat filters
|
|
24792
24803
|
* but keep the connection alive for resolve/identity-binding operations.
|