News for hackers. Stuff that matters.
Re:WebSockets vs. Server-Sent-Events vs. Long-Polling vs. We... by paulddraper on Monday March 18, 2024 @07:10PM (#39751161)
The downside is that you have to base64 payloads or otherwise remove newlines.

I wonder why they didn't just a multipart streamed response.

Supports my metadata, very commonly implemented format

Re:WebSockets vs. Server-Sent-Events vs. Long-Polling vs. We... by niutech on Saturday March 23, 2024 @06:28AM (#39798826)
No need to base64 everything if you can just escape the new lines. Or you can use https://github.com/luciopaiva/binary-sse