nostr-tools 1.3.0 → 1.3.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/README.md CHANGED
@@ -134,12 +134,7 @@ const pool = new SimplePool()
134
134
 
135
135
  let relays = ['wss://relay.example.com', 'wss://relay.example2.com']
136
136
 
137
- relays.forEach(async url => {
138
- let relay = pool.ensureRelay(url)
139
- await relay.connect()
140
- })
141
-
142
- let relay = pool.ensureRelay('wss://relay.example3.com')
137
+ let relay = await pool.ensureRelay('wss://relay.example3.com')
143
138
 
144
139
  let subs = pool.sub([...relays, relay], {
145
140
  authors: ['32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245']