Replies: 1 comment 6 replies
-
Please do not write issues on this package when you are just asking a question. The discussion board is for question, the issues board is for bugs. Regarding your question, have you read the documentation? Start here if you haven't. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I am experiencing an issue in emitting calls from the server to the client.
Just to clarify, when I am sending an emit from the client to the server and then, from the event handler on the server, I send an emit back to the client it always arrives at the client.
BUT
When I am trying to emit to the client outside of a client's emit event handler, the emit doesn't arrive at the client every time.
After exploring the situation a little further, I've figured out that the session of the socket connection is not available to all the workers of the Flask application. When the emit works it is only when the socket connection is available to the worker that manages the request.
Is there a way to solve it?
I am running a Flask application with over 150 workers and preload settings.
I expect that the socket session will be available to all workers of the application for the purpose of sending an emit from a different worker of the server to the client.
Please Advise.
Beta Was this translation helpful? Give feedback.
All reactions