Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 1.19 KB

README.md

File metadata and controls

30 lines (25 loc) · 1.19 KB

Redis pub/sub with websocket

For websockets we used ws npm package.

Prerequesite

  • node v18.16.1
  • npm v9.5.1
  • running redis server on port 6379

Instructions

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.

install node_modules

npm i

start server

npm run start

start dev server

npm run start:dev

Best Articles References