Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add call() support to Flask-SocketIO #1830

Closed
miguelgrinberg opened this issue Jun 11, 2022 Discussed in #1828 · 0 comments
Closed

Add call() support to Flask-SocketIO #1830

miguelgrinberg opened this issue Jun 11, 2022 Discussed in #1828 · 0 comments
Assignees

Comments

@miguelgrinberg
Copy link
Owner

Discussed in #1828

Originally posted by alurmtr June 9, 2022
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant