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.send(json_command) # Send message to WebSocket
|
||||
response = ws.recv() # Receive response
|
||||
print("Message %s sent over websocket to %s" % (message, target))
|
||||
# ws.close() # Close WebSocket connection
|
||||
# print(response)
|
||||
ws.close()
|
||||
|
Loading…
Reference in New Issue
Block a user