Skip to content

Server callback on multiple emit() #1129

Discussion options

You must be logged in to vote

Callbacks are supported only when addressing a single client. You can emit to your clients one by one in a loop and can bypass this limitation, and then it would be up to your callbacks to figure out which client is responding. You can use functools.partial() to bind each callback to the client it belongs to, for example.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@seatedscribe
Comment options

@miguelgrinberg
Comment options

@seatedscribe
Comment options

Answer selected by seatedscribe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants