rickyrauch / Balloons.IO

Balloons.IO is a web multi-room chat server and client ready to use. It’s built with the help of node.JS, Express, Socket.IO and Redis. Balloons uses PassportJS for authentication with Twitter and Facebook
http://balloons.io
2.37k stars 493 forks source link

Add redis-backed chat history with setup in config #97

Open scollett opened 10 years ago

scollett commented 10 years ago

I implemented a history with Redis. It uses Redis lists with the chatroom id as the key. It keeps unlimited history in Redis, but only pulls from Redis the last 5 chat lines unless a higher/lower 'viewlimit' is set in the config file. The history is not saved in Redis or displayed unless there is a history entry in the config file.

qdsang commented 10 years ago

Great!

LoicMahieu commented 10 years ago

+1 Cool feature!