This commit is contained in:
Dominic Zimmer 2020-04-17 01:00:01 +02:00
parent 866833df65
commit 5a6d0cd052
3 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1 @@
{"clients": {"hrp7wawucurqzzap": {"id": "hrp7wawucurqzzap"}}, "sessions": {}}

View File

@ -0,0 +1 @@
{"clients": {"hrp7wawucurqzzap": {"id": "hrp7wawucurqzzap"}}, "sessions": {}}

View File

@ -43,7 +43,7 @@ class Model:
# TODO: compute state, send to client
data = {"message": "nudes"}
for socket in self.sockets[clientid]:
socket.send_json(data)
await socket.send_json(data)
def save(self):
with open(self.filename, "w") as f: