An example of a server and a client using SSE (Server-sent events) and EventSource API.
This example consist in a simple message sender and a list that shows all messages sent using react and express.
- Vite
- React
- @tanstack/react-query
- Typescript
- Express
- RushJS
- https://developer.mozilla.org/en-US/docs/Web/API/EventSource
- https://www.w3schools.com/html/html5_serversentevents.asp#:~:text=A%20server%2Dsent%20event%20is,events%2C%20the%20updates%20come%20automatically.
- https://www.digitalocean.com/community/tutorials/nodejs-server-sent-events-build-realtime-app