From 37c9b9e8250de23f02f93ec99f294e6de948549f Mon Sep 17 00:00:00 2001 From: Ben Arc Date: Fri, 16 Apr 2021 20:50:50 +0100 Subject: [PATCH] print tests --- lnbits/extensions/copilot/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lnbits/extensions/copilot/views.py b/lnbits/extensions/copilot/views.py index 49f58594..ebb008e0 100644 --- a/lnbits/extensions/copilot/views.py +++ b/lnbits/extensions/copilot/views.py @@ -25,7 +25,9 @@ async def ws_panel(copilot_id): @copilot_ext.websocket("/ws/compose/") async def ws_compose(copilot_id): global connected_websockets + print("poo") while True: + print("poo") data = await websocket.receive() await websocket.send(connected_websockets[copilot_id]) @@ -86,9 +88,10 @@ 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) return "", HTTPStatus.OK \ No newline at end of file