Re:WebSockets vs. Server-Sent-Events vs. Long-Polling vs. We...
by jallmann on Tuesday March 19, 2024 @02:26AM
(#39753406)
Sorry, that part of the comment was probably not clear - I was comparing "plain old polling" (stateless request-reply with no delay) with "push", ie long polling
No, that's the whole point of long polling. The server delays the reply until it has something to say. Then it sends it immediately.
The trouble here is middleware which does not comprehend what's going on and introduces extraneous retry logic.