Profile picture

Adding chat messages to a database

It would be really nice to have a way to save chat messages to a database. This would allow us to continue previous conversations, as well as view chat history out of interest. I also think it's important that there would be a manual 'save' button, instead of a continual default saving. Or maybe it could be optional, whether the user saves manually or automatically? Thoughts are welcome about this feature.

Votes: 3

You could use ajax instead of socketio, but I don't recommend it. It can cause a lot of traffic on your website if enough users are on.


If you keep watching Yoder Blog, I have announced that I will implement it because it is sort of like what I have now. It reloads 1000 times an hour. Instead of once every 10 seconds. And doesn't need to have a pop-up message box!



Check out some of our other resources at the links below: