From ee0fab0087bbee8c357e01ac41df9b2a5759c209 Mon Sep 17 00:00:00 2001 From: Ben Arc Date: Fri, 16 Apr 2021 22:13:00 +0100 Subject: [PATCH] finally --- lnbits/extensions/copilot/views.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lnbits/extensions/copilot/views.py b/lnbits/extensions/copilot/views.py index 443a579f..4d25c088 100644 --- a/lnbits/extensions/copilot/views.py +++ b/lnbits/extensions/copilot/views.py @@ -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 \ No newline at end of file