Solve obnoxious cx_Freeze issue that broke websockets by enforcing async_mode=gevent, and including the correct modules in the build

This commit is contained in:
Micah Lee 2021-12-21 16:55:59 -08:00
parent c74c23d658
commit 26ad8a22ad
5 changed files with 321 additions and 71 deletions

View file

@ -163,9 +163,11 @@ class Web:
self.website_mode = WebsiteModeWeb(self.common, self)
elif self.mode == "chat":
if self.common.verbose:
self.socketio = SocketIO(logger=True, engineio_logger=True)
self.socketio = SocketIO(
async_mode="gevent", logger=True, engineio_logger=True
)
else:
self.socketio = SocketIO()
self.socketio = SocketIO(async_mode="gevent")
self.socketio.init_app(self.app)
self.chat_mode = ChatModeWeb(self.common, self)