nostr-double-ratchet
    Preparing search index...

    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