@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.
@@ -1763,8 +1763,18 @@ var NostrTransportProvider = class _NostrTransportProvider {
1763
1763
  reconnectIntervalMs: this.config.reconnectDelay,
1764
1764
  maxReconnectIntervalMs: this.config.reconnectDelay * 16,
1765
1765
  // exponential backoff cap
1766
- pingIntervalMs: 15e3
1766
+ pingIntervalMs: 15e3,
1767
1767
  // 15 second keepalive pings (more aggressive to prevent drops)
1768
+ // Bump query timeout from the SDK default of 5s to 20s.
1769
+ // Real-world testnet observation (2026-05-01): under transient
1770
+ // relay overload, kind:30078 (nametag binding) queries take 5-7s
1771
+ // to return EVENT messages, even though the binding is on the
1772
+ // relay. The default 5s timeout fires before the event arrives,
1773
+ // resolveNametag returns null, and downstream sendDM throws
1774
+ // INVALID_RECIPIENT — causing every np.propose_deal to fail. 20s
1775
+ // gives the slow path enough headroom to complete while still
1776
+ // bailing reasonably fast on a truly broken relay.
1777
+ queryTimeoutMs: 2e4
1768
1778
  });
1769
1779
  this.nostrClient.addConnectionListener({
1770
1780
  onConnect: (url) => {
@@ -1942,8 +1952,10 @@ var NostrTransportProvider = class _NostrTransportProvider {
1942
1952
  autoReconnect: this.config.autoReconnect,
1943
1953
  reconnectIntervalMs: this.config.reconnectDelay,
1944
1954
  maxReconnectIntervalMs: this.config.reconnectDelay * 16,
1945
- pingIntervalMs: 15e3
1955
+ pingIntervalMs: 15e3,
1946
1956
  // 15 second keepalive pings
1957
+ queryTimeoutMs: 2e4
1958
+ // see same option above for rationale
1947
1959
  });
1948
1960
  this.nostrClient.addConnectionListener({
1949
1961
  onConnect: (url) => {