From 683c1152fece66e3fda656167dbb9c79d616d47f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 22 Mar 2022 16:09:02 +0200 Subject: [PATCH] fsd --- files/__main__.py | 3 ++- files/routes/chat.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/files/__main__.py b/files/__main__.py index 61e6249dc..891f364ce 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -1,4 +1,5 @@ - +import gevent.monkey +gevent.monkey.patch_all() from os import environ, path import secrets from flask import * diff --git a/files/routes/chat.py b/files/routes/chat.py index 902b6c9d1..a2f74daee 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -10,7 +10,7 @@ if SITE != 'rdrama.net': from flask import render_template import sys - socketio = SocketIO(app, async_mode='gevent') + socketio = SocketIO(app, async_mode='gevent', cors_allowed_origins='*') typing = [] online = [] messages = []