Close a scoped relay connection.
Whether a relay pool is available.
Open a scoped relay connection (NIP-29 groups).
OptionalpublishPublish only to an already-approved relay destination snapshot. New
adapters must implement this method; publish remains compatibility-only.
Publish to a scoped relay.
Async adapters settle the returned promise after transport acceptance. Returns false if no active scoped relay or publication fails.
Select relay URLs appropriate for the given filters.
OptionalrelayUrls: string[]OptionalsubscribeExecute a subscription against the already-approved relay destination
snapshot. New adapters must implement this method; subscribe remains
only for source compatibility with adapters awaiting migration.
Track a subscription key for lifecycle management.
Untrack and clean up a subscription.
Abstract relay pool — runtime uses this to subscribe to and publish events on real Nostr relays. Implementor wraps their relay library.