Updated server/server.py

This commit is contained in:
mirai 2022-12-02 08:31:01 +03:00
parent a2e4a2b17d
commit 12df5d67fc

View File

@ -27,6 +27,7 @@ async def talking(request: Request, ws: Websocket) -> HTTPResponse:
message=request.form.get("text") message=request.form.get("text")
) )
actual_messages.append(new_message) actual_messages.append(new_message)
await ws.send("{'status': 'ok'}")
await asyncio.sleep(0.2) await asyncio.sleep(0.2)
# return response.json({"status": "ok"}) # return response.json({"status": "ok"})