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()