sse-server a bug
See original GitHub issuein your sse-server.js line9 setTimeout is not very fit here, I suggest you shold use setInterval
your old code
setTimeout(() => {
const secondData = { name: "Laetitia" };
res.write(`data: ${JSON.stringify(secondData)}`);
res.write("\n\n");
}, 500);
i suggest
setInterval(() => {
const secondData = { name: "Laetitia" };
res.write(`data: ${JSON.stringify(secondData)}`);
res.write("\n\n");
}, 500);
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
SSE Defects · Issue #23997 · quarkusio/quarkus - GitHub
Describe the bug Multiple issues related to Server Sent Events demonstrated in ... See sse-server-reactive TimeBroadcaster .
Read more >1251117 - EventSource (Server Sent Event) doesn't retry after ...
Attached file sse-test.js -- simple node.js SSE server — Details ... This bug makes Firefox unsuitable for the use of EventSource .
Read more >Server-sent events: a simple way to stream events from a server
I'm going to talk about what they're for, how they work, and a couple of bugs I ran into while using them yesterday....
Read more >Issue Tracking - Gatling
GitHub's Bug Tracker and Google Group. ... A bug tracker is meant for reporting bugs and asking for features. For asking questions, please...
Read more >Angular 8 - handling SSE reconnect on error - Stack Overflow
... to replace polling with SSE (Server-sent events) or Web Sockets. ... The only thing that bugs me is correct way to reconnect...
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 Free
Top 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
sorry to see your answer so late。i will make a PR tomorrow to fix this if that is convenient。😃
the travis Ci failed to run because you take a minor mistake.you should update your config in order to run perfectly.