made a websocket chat room.
encountered a problem. Where is a better place to keep chat records?
Friends list requests the server"s chat history interface
(that is, to switch chat objects) when clicking Friends
, but it doesn"t feel right to ask for it every time you click.
so I want to save the record.
Local Storage
, Session Storage
, IndexedDb
,.
I don"t know which way is better
Please state the advantages, disadvantages and implementation ideas of the ways you think are better (not limited to the above three, as long as you feel good)