Skip to content

sohailjs/Scalable-chat-with-redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scalable-chat-with-redis

A simple but scalable ChatRoom app where users can create/join multiple chat rooms and communicate within them. Only users in same chat group should receive messages for that group.

How it works:

Redis pubsub channel is created for every group and interested users in group subscribe to that channel.

To connect: ws://localhost:8080/chat?userId="user1"

Below commands sent over socket after successful connection

To join channel:

{
"cmd":"I-JC",
"chName":"ch1"
}

To send message to channel:

{
"cmd":"I-SM",
"chName":"ch1",
"msg":"i dont know"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published