ReactJS-Realtime-Chat icon indicating copy to clipboard operation
ReactJS-Realtime-Chat copied to clipboard

Previous chat

Open AndrewKralovec opened this issue 7 years ago • 2 comments

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?

AndrewKralovec avatar Jun 09 '17 16:06 AndrewKralovec

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.

FrozenCaptain avatar Jan 15 '18 13:01 FrozenCaptain

Can anyone please review this PR and close the issue? I would be highly obliged. @FrozenCaptain

abhinavsharma629 avatar Oct 10 '19 13:10 abhinavsharma629