Изменение вебсокета

This commit is contained in:
urec56 2024-06-05 17:09:57 +05:00
parent 1988800e7b
commit 12d2d7be27

View file

@ -139,7 +139,7 @@ async def websocket_endpoint(
# await AuthService.check_verificated_user_with_exc(uow=uow, user_id=user.id) # await AuthService.check_verificated_user_with_exc(uow=uow, user_id=user.id)
# await AuthService.validate_user_access_to_chat(uow=uow, user_id=user.id, chat_id=chat_id) # await AuthService.validate_user_access_to_chat(uow=uow, user_id=user.id, chat_id=chat_id)
await manager.connect(chat_id, websocket) await manager.connect(chat_id, websocket)
await websocket.send_json({"scope": str(websocket.scope), "cookies": str(websocket.cookies), "headers": str(websocket.headers)}) await websocket.send_json({"headers": str(websocket.headers)})
try: try:
while True: while True:
data = await websocket.receive_json() data = await websocket.receive_json()