This commit is contained in:
Guy Van Sanden 2025-02-12 11:21:18 +01:00
parent 761536274b
commit 150c03b05a

View File

@ -33,9 +33,9 @@ def sendmessage(target, message):
ws.send(json_command) # Send message to WebSocket
responsejson = ws.recv() # Receive response
response = json.loads(responsejson)
print(response)
for chatitem in response['chatitems']:
print(chatitem)
print(response['resp'])
# for chatitem in response['chatitems']:
# print(chatitem)
# print("Message %s sent over websocket to %s" % (chatitem['content'], target))
# ws.close() # Close WebSocket connection
# print(response)