News for hackers. Stuff that matters.
Re:WebSockets vs. Server-Sent-Events vs. Long-Polling vs. We... by cookiengineer on Monday March 18, 2024 @05:24PM (#39750227)
Note that the author misses an essential point: custom compression dictionaries, which can only be used by WebSockets (WS13) and hardly by the others, as that would break compatibility. I'd argue that you can push websocket data usage way lower than the other protocols, if you use a binary compression based on a predefined schema.

In WebSockets, you can use plug&play extensions which can modify the payload on both the client and the server, which make them also ideal for tunneling and peer-to-peer applications.

I've written an article from an implementer's perspective a while ago, in case you are interested [1]

[1] https://cookie.engineer/weblog/articles/implementers-guide-t...

Re:WebSockets vs. Server-Sent-Events vs. Long-Polling vs. We... by nchmy on Tuesday March 19, 2024 @11:18AM (#39756642)
Will this still be the case now that Shared Dictionary support is being rolled out in Chromium?

https://developer.chrome.com/blog/shared-dictionary-compress...