Skip to content

Interface: SubscribeOptions

Defined in: index.ts:886 (opens in a new tab)

PropertiesLink to this section

PropertyTypeDescriptionDefined in
initialBackoffMs?numberReconnect delay, with full jitter, doubling per failure. Default 1000.index.ts:893 (opens in a new tab)
maxBackoffMs?numberDefault 30000.index.ts:895 (opens in a new tab)
onEvent(event: NostrEvent, relay: string) => voidEach verified, filter-matching event once, whichever relay sends it first.index.ts:890 (opens in a new tab)
onStatus?(status: { reason?: string; relay: string; state: SubscriptionState; }) => voidindex.ts:891 (opens in a new tab)
relays?readonly string[]Default DEFAULT_RELAYS.index.ts:888 (opens in a new tab)