Revert gevent

This commit is contained in:
Guy Van Sanden 2025-02-04 19:15:31 +01:00
parent 697483f240
commit 0d9a37cf4e

View File

@ -1,6 +1,5 @@
#!/bin/env python3
from flask import Flask, request, jsonify
from flask_socketio import SocketIO
import websocket
import json
import yaml
@ -10,7 +9,7 @@ __version__ = "2.0.0b1"
versionstring='Taurix TellMe server v' + __version__
app = Flask(__name__)
socketio = SocketIO(app, async_mode='gevent')
# socketio = SocketIO(app, async_mode='gevent')
hooks = {}
with open(r'/etc/tellme/hooks.yml') as hooksfile:
@ -61,4 +60,4 @@ if __name__ == '__main__':
print("Started %s" % (versionstring))
uri = "ws://localhost:5080"
ws = websocket.create_connection(uri)
socketio.run(app, host="0.0.0.0", port=8080)
app.run()