Skip to content

Experimenting with Redis to create a chat room app

Notifications You must be signed in to change notification settings

amybalmforth/redis-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

redis-chat

WIP - Experimenting with Redis to create a chat room app

Chat protocol

To create a message:

  1. serialise like above
  2. LPUSH message on to list with key general-history
  3. PUBLISH message on to topic general-chat

To read message history

  1. LPUSH general-history <your preferred history>
  2. de-serialise as above

To read message live as they come in:

  1. SUBSCRIBE to topic general-chat
  2. de-serialise as above

About

Experimenting with Redis to create a chat room app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages