diff --git a/files/routes/chat.py b/files/routes/chat.py index 0d00bbedd..a7a922e18 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -1,6 +1,7 @@ from files.helpers.const import SITE -if SITE != 'rdrama.net': +if SITE in ('pcmemes.net', 'localhost'): + import time from files.helpers.wrappers import auth_required from files.helpers.sanitize import sanitize from datetime import datetime @@ -9,14 +10,11 @@ if SITE != 'rdrama.net': from flask import render_template import sys - socketio = SocketIO(app) + socketio = SocketIO(app, async_mode='gevent') typing = [] online = [] messages = [] - if __name__ == '__main__': - socketio.run(app) - @app.get("/chat") @auth_required def chat( v):