0
Save and load client messages in Python
I have simple client server chat. Does anybody Has idea how to save chat history since host is running? New client connects to the chat and then he receive all history. File with history is deleted after host disconnect.
1 Resposta
+ 3
You could append the log to a file on the server, or save it in a database. For example the built in sqlite3 engine would work too.
https://docs.python.org/3.7/library/sqlite3.html