Q: Server Sent Event - maximum string length?
See original GitHub issueHi, I was just experimenting and sent a content with a length of 95785 characters:
res.write("data: "+ content + "\n\n");
res.flush();
I do not receive any message in the browser until I remove gzipping… Is there a maximum length?
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Using server-sent events - Web APIs | MDN
When using HTTP/2, the maximum number of simultaneous HTTP streams is negotiated between the server and the client (defaults to 100). Sending ...
Read more >Server sent events and browser limits - Stack Overflow
When using HTTP/2, the maximum number of simultaneous HTTP streams is negotiated between the server and the client (defaults to 100). Spring Boot...
Read more >Server-Sent Events | HTML5 Doctor
In a chat app you don't send messages 60 times per second! WebSockets have advantage only if you send lots of messages continuously....
Read more >Server-Sent Events: the alternative to WebSockets you should ...
In practice, this is unlikely to be problematic unless you're using multiple websockets per page, but the limit of 6 TCP connections is...
Read more >Using SSE Instead Of WebSockets For Unidirectional Data ...
We transfer small amounts of JSON strings for every update as fast as ... “The EventSource interface is used to receive Server-Sent Events....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The fix for this was made in https://github.com/nodejs/node/pull/14527 (and https://github.com/nodejs/node/pull/14571), which made it into today’s 8.3.0 release.
I just hit this issue also and it appears it is related to an issue with the node zlib module not flushing properly when you’ve written more than a single chunk’s worth of data (~16384 bytes). I’ve written this up as an issue on the node project here https://github.com/nodejs/node/issues/14523.