sse_chat_app.mp4
This chat application is a demontration of how we can create a chat application without using websockets. It uses Server Sent Events(SSE) which is a technology enabling client(s) to receive updates in realtime from server. It is a one way communication protocol in which only server can send data to clients. It is fast and very easy to implement and does not requires any additional libraies.
- React
- Typescript
- TailwindCSS
- Zustand
- Express
You can test this app by cloning it and then running following commands in 2 separate terminals
pnpm install
pnpm run dev
nodemon server/index.js
TOKEN_SECRET
is provided in .env
file intentionally in case you do not want to create one manually.