Oddbean new post about | logout
 `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