Type Alias NostrSubscribe
NostrSubscribe: ( filter: Filter, onEvent: (e: VerifiedEvent) => void,) => Unsubscribe Type declaration
- (filter: Filter, onEvent: (e: VerifiedEvent) => void): Unsubscribe
Parameters
- filter: Filter
- onEvent: (e: VerifiedEvent) => void
Function that subscribes to Nostr events matching a filter and calls onEvent for each event.