mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-09 00:28:51 +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
|
// this assigns the pubkey, calculates the event id and signs the event in a single step
|
||||||
const signedEvent = finalizeEvent(eventTemplate, sk)
|
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()
|
relay.close()
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user