Browser-Phone
Browser-Phone copied to clipboard
Different database on Chat
Hello:
Is it possible to replace let localDB = window.localStorage with MYSQL.
It may be a way to store chat history and be able to view it in different sessions.
Regards
Chrome does not offer mySQL as a storage.
I believe what you are looking to do is save the stream to a hosted database, maybe via some sync or fetch service. You will however need to build this yourself.
I did exactly that. localDB points to my own function set where https api calls are done to my server. A simple php api script then does all the mysql magic.