Revert gevent

This commit is contained in:
Guy Van Sanden 2025-02-04 19:16:40 +01:00
parent 0d9a37cf4e
commit 79bdc2c65d

View File

@ -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()