For websockets we used ws npm package.
- node v18.16.1
- npm v9.5.1
- running redis server on port 6379
This project demonstrates the architecture of a simple real-time communication. Here, we will focus on the various components, such as Redis Pub/Sub, involved in building a real-time app and see how they all play their role in the overall architecture. I have implemented all the required stuff for backend. Inside [websockets/client] all the files demonstrated how to handle the other usecases for websockets on frontend. So it should be handle properly on client side.
npm i
npm run start
npm run start:dev