This commit is contained in:
Ben Arc
2021-04-16 22:13:00 +01:00
parent b051f7776c
commit ee0fab0087

View File

@@ -91,10 +91,7 @@ async def api_copilot_hooker(copilot_id, amount):
and int(amount) > copilot.animation3threshold
):
data = copilot.animation3
print(data)
async with websocket(
"/ws/compose/" + copilot_id
) as the_websocket:
await the_websocket.send(data)
print(data)
global connected_websockets
connected_websockets[copilot_id] = copilot_id + "-" + data
return "", HTTPStatus.OK