@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.
@@ -1811,8 +1811,18 @@ var NostrTransportProvider = class _NostrTransportProvider {
1811
1811
  reconnectIntervalMs: this.config.reconnectDelay,
1812
1812
  maxReconnectIntervalMs: this.config.reconnectDelay * 16,
1813
1813
  // exponential backoff cap
1814
- pingIntervalMs: 15e3
1814
+ pingIntervalMs: 15e3,
1815
1815
  // 15 second keepalive pings (more aggressive to prevent drops)
1816
+ // Bump query timeout from the SDK default of 5s to 20s.
1817
+ // Real-world testnet observation (2026-05-01): under transient
1818
+ // relay overload, kind:30078 (nametag binding) queries take 5-7s
1819
+ // to return EVENT messages, even though the binding is on the
1820
+ // relay. The default 5s timeout fires before the event arrives,
1821
+ // resolveNametag returns null, and downstream sendDM throws
1822
+ // INVALID_RECIPIENT — causing every np.propose_deal to fail. 20s
1823
+ // gives the slow path enough headroom to complete while still
1824
+ // bailing reasonably fast on a truly broken relay.
1825
+ queryTimeoutMs: 2e4
1816
1826
  });
1817
1827
  this.nostrClient.addConnectionListener({
1818
1828
  onConnect: (url) => {
@@ -1990,8 +2000,10 @@ var NostrTransportProvider = class _NostrTransportProvider {
1990
2000
  autoReconnect: this.config.autoReconnect,
1991
2001
  reconnectIntervalMs: this.config.reconnectDelay,
1992
2002
  maxReconnectIntervalMs: this.config.reconnectDelay * 16,
1993
- pingIntervalMs: 15e3
2003
+ pingIntervalMs: 15e3,
1994
2004
  // 15 second keepalive pings
2005
+ queryTimeoutMs: 2e4
2006
+ // see same option above for rationale
1995
2007
  });
1996
2008
  this.nostrClient.addConnectionListener({
1997
2009
  onConnect: (url) => {