Why can’t you connect to the relay and run the request and leave it open?

If you do a request and pull the data after the “EOSE” message you’ll get new data coming in satisfying your query request.

I’m a little thick headed so just to try to visualize this. You have a nodejs “servlet” that’s doing these queries and then storing them for you to retrieve via an API call you invoke from a web browser?

Reply to this note

Please Login to reply.

Discussion

I thought about leaving the relay open, but thought it might cause performance issues. I don’t know a whole lot about the nostr protocol. I’ll try that and see. I have to go to bed now though.

Goodnight and thanks for the help 🤙

Anytime.

Go read the NIPs and run a tool like Nostril (I think jb55 wrote it) to do some test events and queries.

It’s how I learned and had a lot of my aha moments.

Good night!