Interface: SubscribeOptions
Defined in: index.ts:886 (opens in a new tab)
PropertiesLink to this section
| Property | Type | Description | Defined in |
|---|---|---|---|
initialBackoffMs? | number | Reconnect delay, with full jitter, doubling per failure. Default 1000. | index.ts:893 (opens in a new tab) |
maxBackoffMs? | number | Default 30000. | index.ts:895 (opens in a new tab) |
onEvent | (event: NostrEvent, relay: string) => void | Each 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; }) => void | index.ts:891 (opens in a new tab) | |
relays? | readonly string[] | Default DEFAULT_RELAYS. | index.ts:888 (opens in a new tab) |