mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
fix pool.publish() example in README.
following https://github.com/nbd-wtf/nostr-tools/issues/482
This commit is contained in:
@@ -104,7 +104,7 @@ let eventTemplate = {
|
||||
|
||||
// this assigns the pubkey, calculates the event id and signs the event in a single step
|
||||
const signedEvent = finalizeEvent(eventTemplate, sk)
|
||||
await pool.publish(['wss://a.com', 'wss://b.com'], signedEvent)
|
||||
await Promise.any(pool.publish(['wss://a.com', 'wss://b.com'], signedEvent))
|
||||
|
||||
relay.close()
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user