Why Nostr? What is Njump?
2024-05-08 06:48:02
in reply to

Yuki Kishimoto on Nostr: `client.get_events_of` it's basically an auto-closing subscription: subscribe, listen ...

`client.get_events_of` it's basically an auto-closing subscription: subscribe, listen until EOSE or when timeout is reached, close subscription and return events.

To subscribe "forever", just use the `client. subscribe` method. All the events will be sent to a notification channel. You can find an example here:

https://github.com/rust-nostr/nostr/blob/master/bindings%2Fnostr-sdk-ffi%2Fbindings-python%2Fexamples%2Fbot.py
Author Public Key
npub1drvpzev3syqt0kjrls50050uzf25gehpz9vgdw08hvex7e0vgfeq0eseet