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)