heroku-python / flask-sockets

[DEPRECATED] Alternative: https://github.com/miguelgrinberg/flask-sock
MIT License
1.74k stars 167 forks source link

Deploying behind uwsgi? #54

Closed trbabb closed 6 years ago

trbabb commented 6 years ago

I'm seeing issues when attempting to deploy behind nginx/uwsgi. (Apologies if this is turns out to not be a flask-sockets issue).

Specifically, the 'wsgi.websockets' key is missing from the request environment and so flask-sockets just routes to the normal app and the websocket request 404s. (I've set gevent = 100 in the uwsgi config to no avail).

Happy to provide configs if need be, or receive pointers on how to set up the nginx/uwsgi configs so that websocket requests to flask-sockets will complete.

thanks for your help!

kennethreitz commented 6 years ago

This library only supports gunicorn.