Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Previous chat #5

Open
AndrewKralovec opened this issue Jun 9, 2017 · 2 comments
Open

Previous chat #5

AndrewKralovec opened this issue Jun 9, 2017 · 2 comments

Comments

@AndrewKralovec
Copy link

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?

@FrozenCaptain
Copy link

FrozenCaptain commented Jan 15, 2018

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.

@abhinavsharma629
Copy link

abhinavsharma629 commented Oct 10, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants