Flask-SocketIO reconnects Websocket after HTTP request #1822
Unanswered
BillyHesse
asked this question in
Q&A
Replies: 1 comment 10 replies
-
Is the hardware code that you are using compatible with gevent? Most hardware control libraries aren't. |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Flask-SocketIO reconnects Websocket after HTTP request
Hey Python Webdev's!
I'm currently working on a Flask-Webserver (with Flask-Login, Flask-SocketIO and Flask-Session) to control relais for static and also flashing lights. Using uWSGI with Gevent-Websocket for deployment i am encountering the problem, that the User who triggers an HTTP request gets disconnected from the Websocket. After 4-8 seconds the Websocket reconnects the User with a new SID and everything works again. While all other Users (anonymous and also authenticated) just recieve the data from the socket instantly as supposed to. I already studied logs and tried everything to solve this problem in the past 10 days and couldn't find any error.
Beta Was this translation helpful? Give feedback.
All reactions