Await it
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
{"clients": {"hrp7wawucurqzzap": {"id": "hrp7wawucurqzzap"}}, "sessions": {}}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"clients": {"hrp7wawucurqzzap": {"id": "hrp7wawucurqzzap"}}, "sessions": {}}
|
||||||
@@ -43,7 +43,7 @@ class Model:
|
|||||||
# TODO: compute state, send to client
|
# TODO: compute state, send to client
|
||||||
data = {"message": "nudes"}
|
data = {"message": "nudes"}
|
||||||
for socket in self.sockets[clientid]:
|
for socket in self.sockets[clientid]:
|
||||||
socket.send_json(data)
|
await socket.send_json(data)
|
||||||
|
|
||||||
def save(self):
|
def save(self):
|
||||||
with open(self.filename, "w") as f:
|
with open(self.filename, "w") as f:
|
||||||
|
|||||||
Reference in New Issue
Block a user