@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.
@@ -1486,8 +1486,18 @@ var NostrTransportProvider = class _NostrTransportProvider {
1486
1486
  reconnectIntervalMs: this.config.reconnectDelay,
1487
1487
  maxReconnectIntervalMs: this.config.reconnectDelay * 16,
1488
1488
  // exponential backoff cap
1489
- pingIntervalMs: 15e3
1489
+ pingIntervalMs: 15e3,
1490
1490
  // 15 second keepalive pings (more aggressive to prevent drops)
1491
+ // Bump query timeout from the SDK default of 5s to 20s.
1492
+ // Real-world testnet observation (2026-05-01): under transient
1493
+ // relay overload, kind:30078 (nametag binding) queries take 5-7s
1494
+ // to return EVENT messages, even though the binding is on the
1495
+ // relay. The default 5s timeout fires before the event arrives,
1496
+ // resolveNametag returns null, and downstream sendDM throws
1497
+ // INVALID_RECIPIENT — causing every np.propose_deal to fail. 20s
1498
+ // gives the slow path enough headroom to complete while still
1499
+ // bailing reasonably fast on a truly broken relay.
1500
+ queryTimeoutMs: 2e4
1491
1501
  });
1492
1502
  this.nostrClient.addConnectionListener({
1493
1503
  onConnect: (url) => {
@@ -1665,8 +1675,10 @@ var NostrTransportProvider = class _NostrTransportProvider {
1665
1675
  autoReconnect: this.config.autoReconnect,
1666
1676
  reconnectIntervalMs: this.config.reconnectDelay,
1667
1677
  maxReconnectIntervalMs: this.config.reconnectDelay * 16,
1668
- pingIntervalMs: 15e3
1678
+ pingIntervalMs: 15e3,
1669
1679
  // 15 second keepalive pings
1680
+ queryTimeoutMs: 2e4
1681
+ // see same option above for rationale
1670
1682
  });
1671
1683
  this.nostrClient.addConnectionListener({
1672
1684
  onConnect: (url) => {