Replies: 1 comment 12 replies
-
First of all, please do not write issues when you are troubleshooting a problem. Issues is where I track bugs and enhancement for this package. Second, your wsgi.py is wrong, it will never work for Socket.IO. You have to use If that does not work, then you need to look at the server logs for clues. See the troubleshooting section of the documentation to learn how to enable Socket.IO logs on the server. |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So what is happeing right now is when i try to use socketio.emit, inside any app.route it doesn't give any error it just doesn't work.
I'm using a Linux EC2 machine in aws, and i ran "python flasky.py", so i execute my flasky file and run the app on port 5000 with
socketio_.run(app, host='0.0.0.0') and everything works.
But when i reboot the machine and wsgi starts, sudently all the emits inside the routes stop working, and i'm assuming it's because on my wsgi.py i have app.run(), instead of socketio_.run(app, host='0.0.0.0'), so i'ved tried to change the wsgi.py to socketio_.run(app, host='0.0.0.0') but when i do that all the emits (inside or outside a route) stop working.
flasky.py
wsgi.py
So on conclusion, if i run my flasky.py app everything works on port 5000.
If i let wsgi.py run by it self when i reboot the machine, all socket emits stop working.
Thank you in advance!
note: I'm not putting here the imports, but i'm importing everything correctly
Beta Was this translation helpful? Give feedback.
All reactions