Updated server/server.py
Updated ws_talk.py
This commit is contained in:
parent
12df5d67fc
commit
e51c18eae4
|
|
@ -23,10 +23,10 @@ async def talking(request: Request, ws: Websocket) -> HTTPResponse:
|
||||||
while True:
|
while True:
|
||||||
data = await ws.recv()
|
data = await ws.recv()
|
||||||
print(data)
|
print(data)
|
||||||
new_message = Message(
|
# new_message = Message(
|
||||||
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 ws.send("{'status': 'ok'}")
|
||||||
await asyncio.sleep(0.2)
|
await asyncio.sleep(0.2)
|
||||||
# return response.json({"status": "ok"})
|
# return response.json({"status": "ok"})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user