nostr:npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft nostr:npub1nxa4tywfz9nqp7z9zp7nr7d4nchhclsf58lcqt5y782rmf2hefjquaa6q8 nostr:npub1drvpzev3syqt0kjrls50050uzf25gehpz9vgdw08hvex7e0vgfeq0eseet if I have questions about nostr_sdk bindings for python, is there a chat / telegram / etc where people hang out?

I'm trying to figure out what client.get_events_of() does, specifically what the timeout does.

I'd also be willing to contribute to documentation for the python bindings.

`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

Reply to this note

Please Login to reply.

Discussion

Thank you I’ll check that out