@unicitylabs/sphere-sdk 0.7.0 → 0.7.1-dev.2
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
package/dist/core/index.js
CHANGED
|
@@ -1406,8 +1406,18 @@ var NostrTransportProvider = class _NostrTransportProvider {
|
|
|
1406
1406
|
reconnectIntervalMs: this.config.reconnectDelay,
|
|
1407
1407
|
maxReconnectIntervalMs: this.config.reconnectDelay * 16,
|
|
1408
1408
|
// exponential backoff cap
|
|
1409
|
-
pingIntervalMs: 15e3
|
|
1409
|
+
pingIntervalMs: 15e3,
|
|
1410
1410
|
// 15 second keepalive pings (more aggressive to prevent drops)
|
|
1411
|
+
// Bump query timeout from the SDK default of 5s to 20s.
|
|
1412
|
+
// Real-world testnet observation (2026-05-01): under transient
|
|
1413
|
+
// relay overload, kind:30078 (nametag binding) queries take 5-7s
|
|
1414
|
+
// to return EVENT messages, even though the binding is on the
|
|
1415
|
+
// relay. The default 5s timeout fires before the event arrives,
|
|
1416
|
+
// resolveNametag returns null, and downstream sendDM throws
|
|
1417
|
+
// INVALID_RECIPIENT — causing every np.propose_deal to fail. 20s
|
|
1418
|
+
// gives the slow path enough headroom to complete while still
|
|
1419
|
+
// bailing reasonably fast on a truly broken relay.
|
|
1420
|
+
queryTimeoutMs: 2e4
|
|
1411
1421
|
});
|
|
1412
1422
|
this.nostrClient.addConnectionListener({
|
|
1413
1423
|
onConnect: (url) => {
|
|
@@ -1585,8 +1595,10 @@ var NostrTransportProvider = class _NostrTransportProvider {
|
|
|
1585
1595
|
autoReconnect: this.config.autoReconnect,
|
|
1586
1596
|
reconnectIntervalMs: this.config.reconnectDelay,
|
|
1587
1597
|
maxReconnectIntervalMs: this.config.reconnectDelay * 16,
|
|
1588
|
-
pingIntervalMs: 15e3
|
|
1598
|
+
pingIntervalMs: 15e3,
|
|
1589
1599
|
// 15 second keepalive pings
|
|
1600
|
+
queryTimeoutMs: 2e4
|
|
1601
|
+
// see same option above for rationale
|
|
1590
1602
|
});
|
|
1591
1603
|
this.nostrClient.addConnectionListener({
|
|
1592
1604
|
onConnect: (url) => {
|