Publish to every relay and succeed when any one accepts. A relay that refuses or is unreachable is normal on an open network; only when none accepted is the publish a failure, and then the reason names how many were tried (D-028).
The shared applesauce pool.
Where to publish.
The signed event.
How many relays accepted it.
await publishAccepted(pool, ['wss://a', 'wss://b'], event); // 1 when only one accepted Copy
await publishAccepted(pool, ['wss://a', 'wss://b'], event); // 1 when only one accepted
Publish to every relay and succeed when any one accepts. A relay that refuses or is unreachable is normal on an open network; only when none accepted is the publish a failure, and then the reason names how many were tried (D-028).