add output
This commit is contained in:
parent
4801b74405
commit
48791ee1f1
@ -33,6 +33,7 @@ def sendmessage(target, message):
|
|||||||
ws = websocket.create_connection(uri) # Blocking WebSocket connection
|
ws = websocket.create_connection(uri) # Blocking WebSocket connection
|
||||||
ws.send(json_command) # Send message to WebSocket
|
ws.send(json_command) # Send message to WebSocket
|
||||||
response = ws.recv() # Receive response
|
response = ws.recv() # Receive response
|
||||||
|
print("Message %s sent over websocket to %s" % (message, target))
|
||||||
# ws.close() # Close WebSocket connection
|
# ws.close() # Close WebSocket connection
|
||||||
# print(response)
|
# print(response)
|
||||||
ws.close()
|
ws.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user