diff --git a/backups/2020-04-17-005940_tehmodel.json b/backups/2020-04-17-005940_tehmodel.json new file mode 100644 index 0000000..3960af8 --- /dev/null +++ b/backups/2020-04-17-005940_tehmodel.json @@ -0,0 +1 @@ +{"clients": {"hrp7wawucurqzzap": {"id": "hrp7wawucurqzzap"}}, "sessions": {}} \ No newline at end of file diff --git a/backups/2020-04-17-005956_tehmodel.json b/backups/2020-04-17-005956_tehmodel.json new file mode 100644 index 0000000..3960af8 --- /dev/null +++ b/backups/2020-04-17-005956_tehmodel.json @@ -0,0 +1 @@ +{"clients": {"hrp7wawucurqzzap": {"id": "hrp7wawucurqzzap"}}, "sessions": {}} \ No newline at end of file diff --git a/model.py b/model.py index c2eb620..c7fe8e2 100644 --- a/model.py +++ b/model.py @@ -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: