finally
This commit is contained in:
parent
b051f7776c
commit
ee0fab0087
1 changed files with 3 additions and 6 deletions
|
|
@ -91,10 +91,7 @@ async def api_copilot_hooker(copilot_id, amount):
|
||||||
and int(amount) > copilot.animation3threshold
|
and int(amount) > copilot.animation3threshold
|
||||||
):
|
):
|
||||||
data = copilot.animation3
|
data = copilot.animation3
|
||||||
print(data)
|
global connected_websockets
|
||||||
async with websocket(
|
connected_websockets[copilot_id] = copilot_id + "-" + data
|
||||||
"/ws/compose/" + copilot_id
|
|
||||||
) as the_websocket:
|
|
||||||
await the_websocket.send(data)
|
|
||||||
print(data)
|
|
||||||
return "", HTTPStatus.OK
|
return "", HTTPStatus.OK
|
||||||
Loading…
Add table
Add a link
Reference in a new issue