On 25 October 2018 Miguel Grimberg the author of Flask-socketIO answered this way about Flask-socketIO on Elasticbeanstalk.
Now a year later I'm trying to do it with an app deployed on EB Python 2.7 but I can't make it work.
Miguel expressed doubts about EB not using eventlet web servers and actually I think Apache doesn't support eventlet.
Somwhere else Miguel expressed doubts about EB being multithreads but I notice that in my environment configuration there is the number of threads (NumThreads: 15).
I also found this solution for web sockets with Python and Apache (apparentely) released by AWS but I can't make it work (I actually tried with port=5000 is it right?).
A solution quite popular on the Internet is even this:
container_commands:
enable_websockets:
command: |
sed -i '/\s*proxy_set_header\s*Connection/c \
proxy_set_header Upgrade $http_upgrade;\
proxy_set_header Connection "upgrade";\
' /tmp/deployment/config/#etc#nginx#conf.d#00_elastic_beanstalk_proxy.conf
but it doesn't seem directly relevant to the default Python EB platform with Apache web server.
So is somebody using Flask-socketIO on an EB environment and if so could she please share configuration?
socketio.run()or via gunicorn. Apache is tricky to use with Socket.IO. - Miguel