Test threading lock
This commit is contained in:
parent
38d9e87393
commit
06744aa5c7
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user