Browser-Phone icon indicating copy to clipboard operation
Browser-Phone copied to clipboard

Different database on Chat

Open rgonzalez-in opened this issue 2 years ago • 2 comments

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

rgonzalez-in avatar Dec 19 '22 04:12 rgonzalez-in

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.

InnovateAsterisk avatar Jan 11 '23 12:01 InnovateAsterisk

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.

ArminXG avatar Jan 23 '23 14:01 ArminXG