Debug
This commit is contained in:
parent
761536274b
commit
150c03b05a
@ -33,9 +33,9 @@ def sendmessage(target, message):
|
|||||||
ws.send(json_command) # Send message to WebSocket
|
ws.send(json_command) # Send message to WebSocket
|
||||||
responsejson = ws.recv() # Receive response
|
responsejson = ws.recv() # Receive response
|
||||||
response = json.loads(responsejson)
|
response = json.loads(responsejson)
|
||||||
print(response)
|
print(response['resp'])
|
||||||
for chatitem in response['chatitems']:
|
# for chatitem in response['chatitems']:
|
||||||
print(chatitem)
|
# print(chatitem)
|
||||||
# print("Message %s sent over websocket to %s" % (chatitem['content'], target))
|
# print("Message %s sent over websocket to %s" % (chatitem['content'], target))
|
||||||
# ws.close() # Close WebSocket connection
|
# ws.close() # Close WebSocket connection
|
||||||
# print(response)
|
# print(response)
|
||||||
|
Loading…
Reference in New Issue
Block a user