diff --git a/README.md b/README.md index ad254cc..822e66c 100644 --- a/README.md +++ b/README.md @@ -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() ```