From f3ef9e55d558b8770d0c3fa7a052d13543086d4d Mon Sep 17 00:00:00 2001 From: Guy Van Sanden Date: Wed, 12 Feb 2025 11:17:48 +0100 Subject: [PATCH] Debug --- server/src/tellmesrv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/tellmesrv.py b/server/src/tellmesrv.py index d2c687d..b33636b 100644 --- a/server/src/tellmesrv.py +++ b/server/src/tellmesrv.py @@ -31,7 +31,8 @@ def sendmessage(target, message): uri = "ws://localhost:5080" ws = websocket.create_connection(uri) # Blocking WebSocket connection ws.send(json_command) # Send message to WebSocket - response = ws.recv() # Receive response + responsejson = ws.recv() # Receive response + response = json.loads(responsejson) chatitems = response['resp']['chatitems'] for chatitem in chatitems: print(chatitem)