From 06744aa5c71f6502848b1c51748a0b4da3f96294 Mon Sep 17 00:00:00 2001 From: Guy Van Sanden Date: Wed, 12 Feb 2025 11:16:09 +0100 Subject: [PATCH] Test threading lock --- server/src/tellmesrv.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/src/tellmesrv.py b/server/src/tellmesrv.py index 433658f..d2c687d 100644 --- a/server/src/tellmesrv.py +++ b/server/src/tellmesrv.py @@ -32,7 +32,10 @@ def sendmessage(target, message): ws = websocket.create_connection(uri) # Blocking WebSocket connection ws.send(json_command) # Send message to WebSocket response = ws.recv() # Receive response - print("Message %s sent over websocket to %s" % (message, target)) + chatitems = response['resp']['chatitems'] + for chatitem in chatitems: + print(chatitem) + # print("Message %s sent over websocket to %s" % (chatitem['content'], target)) # ws.close() # Close WebSocket connection # print(response) ws.close()