mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-21 14:10:30 +02:00
finally
This commit is contained in:
@@ -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
|
Reference in New Issue
Block a user