Skip to content

socket io don't send emit in subclasses call by pydispatcher #1250

Answered by miguelgrinberg
tetrew88 asked this question in Q&A
Discussion options

You must be logged in to vote

If you use asyncio, then you should use socketio.AsyncServer. If you don't use asyncio, then you should use socketio.Server. The choice of which of these to use depends on other libraries and packages that you use. If your other libraries are async, then use the asyncio server. If your other libraries are not async, then use the regular server. The rule is not not mix up sync and async packages, as that is very likely not going to work.

For the regular server, you can use an eventlet server, a gevent server, or the gunicorn server. The gunicorn server itself can be used in threaded mode, in eventlet mode and in gevent mode. It is also possible to use the Flask development web server in th…

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
11 replies
@tetrew88
Comment options

@miguelgrinberg
Comment options

@tetrew88
Comment options

@miguelgrinberg
Comment options

Answer selected by tetrew88
@tetrew88
Comment options

Comment options

You must be logged in to vote
0 replies
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
Converted from issue

This discussion was converted from issue #1248 on October 07, 2023 19:21.