by anderspitman · 5y ago · 0 comments
I think there's value in keeping our protocols as simple as possible to accomplish the task at hand.
But today I always start with plain HTTP, then try SSE, and finally WebSockets if I have to.
For infrequent requests everything goes through the api, but for stuff like chat and live-document-editing, nodejs is the better solution.
I guess I'm not seeing what the alternative setup would be, even with WebSockets.
You may be confusing it with HTTP/2 Push, where a server can inform a client of a future resource it will need, which is _de facto_ dead, with only a few real implementations beyond the bare minimum required by the HTTP/2 specification.