ReactJS-Realtime-Chat
ReactJS-Realtime-Chat copied to clipboard
Previous chat
First off let me just say great example of integrating react & socket.io . I have a question. When a new user joins the chat, they don't see the previous chat history. Is there a way of pass the previous chat history to the new user, when he joins the chat?
Setup a database. like MongoDB or SQL. Push the chat (history) to the database. When a new user joins the chat/channel. You send a query to get the previous chat(history) from the database. I.m.o best option. you can view chats from weeks/months ago.
Can anyone please review this PR and close the issue? I would be highly obliged. @FrozenCaptain