Close a scoped relay connection.
Whether a relay pool is available.
Open a scoped relay connection (NIP-29 groups).
Publish to a scoped relay. Returns false if no active scoped relay.
Select relay URLs appropriate for the given filters.
Subscribe to events from relays matching the given filters. The callback receives either 'EOSE' (end of stored events) or a NostrEvent. Returns a handle that can cancel the subscription.
OptionalrelayUrls: string[]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.