server persist messages to a simple JSON file; client replace messages (on reconnect)