Replies: 1 comment 1 reply
-
I never got around to add |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using Flask-socketio and sending an emit to the client, and would like to wait for response before continuing in the code flow.
The case scenario is a background python code that needs feedback from user whether code should continue execution. An emit message is sent to the client, which in turns will send a js confirm pop-up window to the front end user. Based on the user selection, an acknowledgement is sent back to the python background process.
The callback option in the flask-socketio emit wouldn't work well. Something like the python-socketio call method would be great to just wait for the response. just wondering if there is such an option in flask-socketio.
Thanks
Al
Beta Was this translation helpful? Give feedback.
All reactions