Type Alias NostrSubscribe

NostrSubscribe: (
    filter: Filter,
    onEvent: (e: VerifiedEvent) => void,
) => Unsubscribe

Function that subscribes to Nostr events matching a filter and calls onEvent for each event.

Type declaration

    • (filter: Filter, onEvent: (e: VerifiedEvent) => void): Unsubscribe
    • Parameters

      • filter: Filter
      • onEvent: (e: VerifiedEvent) => void

      Returns Unsubscribe