Изменение вебсокета
This commit is contained in:
parent
1988800e7b
commit
12d2d7be27
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue