Flask SocketIO Server Emit works intermittently #1917
Unanswered
csharmatech
asked this question in
Q&A
Replies: 1 comment 3 replies
-
I am using gevent as below:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Miguel,
I am using Flask SocketIO with Nginx, gunicorn for catching the client events(triggered by button click) on the server side which does some processing and then emits the response back to client asynchronously. For sending asynchronous updates from server, I am using threading such that long running task (which is run in a thread) is executed and once completes sends it to client. The problem I am facing is that server emit works intermittently. Not sure where the problem lies? In the logs, I do see the server emit data.
Client side Javascript
Server Side Python Code
Beta Was this translation helpful? Give feedback.
All reactions