@unicitylabs/sphere-sdk 0.7.0 → 0.7.1-dev.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/dist/core/index.cjs +14 -2
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +14 -2
- package/dist/core/index.js.map +1 -1
- package/dist/impl/browser/index.cjs +14 -2
- package/dist/impl/browser/index.cjs.map +1 -1
- package/dist/impl/browser/index.js +14 -2
- package/dist/impl/browser/index.js.map +1 -1
- package/dist/impl/nodejs/index.cjs +14 -2
- package/dist/impl/nodejs/index.cjs.map +1 -1
- package/dist/impl/nodejs/index.js +14 -2
- package/dist/impl/nodejs/index.js.map +1 -1
- package/dist/index.cjs +14 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -24828,8 +24828,18 @@ var NostrTransportProvider = class _NostrTransportProvider {
|
|
|
24828
24828
|
reconnectIntervalMs: this.config.reconnectDelay,
|
|
24829
24829
|
maxReconnectIntervalMs: this.config.reconnectDelay * 16,
|
|
24830
24830
|
// exponential backoff cap
|
|
24831
|
-
pingIntervalMs: 15e3
|
|
24831
|
+
pingIntervalMs: 15e3,
|
|
24832
24832
|
// 15 second keepalive pings (more aggressive to prevent drops)
|
|
24833
|
+
// Bump query timeout from the SDK default of 5s to 20s.
|
|
24834
|
+
// Real-world testnet observation (2026-05-01): under transient
|
|
24835
|
+
// relay overload, kind:30078 (nametag binding) queries take 5-7s
|
|
24836
|
+
// to return EVENT messages, even though the binding is on the
|
|
24837
|
+
// relay. The default 5s timeout fires before the event arrives,
|
|
24838
|
+
// resolveNametag returns null, and downstream sendDM throws
|
|
24839
|
+
// INVALID_RECIPIENT — causing every np.propose_deal to fail. 20s
|
|
24840
|
+
// gives the slow path enough headroom to complete while still
|
|
24841
|
+
// bailing reasonably fast on a truly broken relay.
|
|
24842
|
+
queryTimeoutMs: 2e4
|
|
24833
24843
|
});
|
|
24834
24844
|
this.nostrClient.addConnectionListener({
|
|
24835
24845
|
onConnect: (url) => {
|
|
@@ -25007,8 +25017,10 @@ var NostrTransportProvider = class _NostrTransportProvider {
|
|
|
25007
25017
|
autoReconnect: this.config.autoReconnect,
|
|
25008
25018
|
reconnectIntervalMs: this.config.reconnectDelay,
|
|
25009
25019
|
maxReconnectIntervalMs: this.config.reconnectDelay * 16,
|
|
25010
|
-
pingIntervalMs: 15e3
|
|
25020
|
+
pingIntervalMs: 15e3,
|
|
25011
25021
|
// 15 second keepalive pings
|
|
25022
|
+
queryTimeoutMs: 2e4
|
|
25023
|
+
// see same option above for rationale
|
|
25012
25024
|
});
|
|
25013
25025
|
this.nostrClient.addConnectionListener({
|
|
25014
25026
|
onConnect: (url) => {
|