Server-Sent Event #4876
Replies: 2 comments 3 replies
-
"doesn't work" doesn't say anything about the problem you're facing. Is there a build error? A runtime error? The code from the example repo works for me on node 19. |
Beta Was this translation helpful? Give feedback.
-
I've tried both examples recently and had issues. I could get the time example working (eventStream working) to clients but I couldn't get the emitter to emit on message successfully. I tried to wrap emitter.emit in a console.log which returned false which from the documentation below says that the event doesn't have any listeners: Similarly when I try the official example, the client making the changes re validates and the the other client doesn't receive any updates. I've tried with Node v18 and v19 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Does anyone have a simple example for making a simple subscription (SSE) that works?
None of the examples seem to work.
Does not work:
SSE (see https://sergiodxa.com/articles/use-server-sent-events-with-remix)
Doesn't work:
https://github.com/remix-run/examples/tree/main/_official-realtime-app
Doesn't work even by directly installing the example...
Beta Was this translation helpful? Give feedback.
All reactions