Skip to content Skip to sidebar Skip to footer

Flask Socketio & Uwsgi Causes 'typeerror: 'socketio' Object Is Not Callable'

I'm currently building an app that uses a combination of Flask and Flask SocketIO to handle a combination of HTTP and WebSocket traffic. After deploying my application on a server

Solution 1:

Turns out Flask-SocketIO simply mounts onto the original app object, replacing the following:

[uwsgi]module = wsgi:io

To:

[uwsgi]module = wsgi:app

Would work, but uwsgi still has terrible support for SocketIO, making gunicorn a better option as from what I've heard.

Post a Comment for "Flask Socketio & Uwsgi Causes 'typeerror: 'socketio' Object Is Not Callable'"