While reviewing flaskserver.py and server.py, I noticed that the session is identified by the server's public key, which never changes. Shouldn't each client have a separate session?
I'd like to use this code for a project I'm working on and would be happy to contribute back a proposed fix (if I'm not just misunderstanding the code).