VolatileSD / ChatServer

Chat server which allows users to authenticate, chose room and send text lines to other users in the same room. The service should be scalable in the number of connected users, allow subscription of notable events, and provide a REST interface for management and description.
3 stars 1 forks source link

Chat history #10

Open anaoaktree opened 10 years ago

anaoaktree commented 10 years ago

Show chat history; possibly download chat log

vitorenesduarte commented 9 years ago

:+1:

vitorenesduarte commented 9 years ago

Every room counts the number of messages it sends. The value of the counter when a message is send is a unique identifier of that message. Everytime a user connects to a room we log his entry saving the value of the counter. Same when he disconnects.

When this user asks for his history in this room, we spawn a HistoryWorker that assembles the user's history in that room based on his log.

vitorenesduarte commented 9 years ago

Is this worth it? Assuming we will have a web client one day, the user after connecting to a room can scroll through all messages. So this would only be used by telnet client and the only way we could send him the history would be printing all messages in his screen, which is not pleasant. I think this is a nice feature but only for the client, and it should download all the messages from that room.

vitorenesduarte commented 9 years ago

All messages are stored in the database, show or download the history is pretty easy now.

vitorenesduarte commented 9 years ago

:facepunch:

vitorenesduarte commented 9 years ago

:octocat:

vitorenesduarte commented 9 years ago

:santa: