Revert gevent
This commit is contained in:
parent
0d9a37cf4e
commit
79bdc2c65d
@ -28,7 +28,7 @@ def sendmessage(target, message):
|
||||
json_command = json.dumps(command)
|
||||
|
||||
""" Connects to WebSocket server, sends a message, and returns the response """
|
||||
# ws = websocket.create_connection(uri) # Blocking WebSocket connection
|
||||
ws = websocket.create_connection(uri) # Blocking WebSocket connection
|
||||
ws.send(json_command) # Send message to WebSocket
|
||||
response = ws.recv() # Receive response
|
||||
# ws.close() # Close WebSocket connection
|
||||
@ -59,5 +59,5 @@ def webhook_receiver(id):
|
||||
if __name__ == '__main__':
|
||||
print("Started %s" % (versionstring))
|
||||
uri = "ws://localhost:5080"
|
||||
ws = websocket.create_connection(uri)
|
||||
# ws = websocket.create_connection(uri)
|
||||
app.run()
|
||||
|
Loading…
Reference in New Issue
Block a user