I use both in my web client. https has a lot of overhead for each request. Perfectly fine for responding to user requests but not great for real-time event-driven behaviour. Sockets is better.
for most kind1 clients I see the benefit of websockets. But when a single request is needed, I think http is just simpler.
Is it true nostr:npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6 that you "don't like" http? If so, what's the rationale?
Discussion
my understanding is that if the requests are less than 3, or are distributed over minutes, than http.
Else websocket.
wdyt?
Yep. Good old https rest api does the job for 95% of the functionality. However, when you need async event driven stuff, websockets is the way to go. For example, when I am waiting for a Lightning payment, I prefer to use a websockets to push the event through when it comes rather than poll for it. A lot less stress on the server.