Replies: 3 comments 2 replies
-
Flask-SocketIO does not publish anything to the message queue. Those disconnect messages must be coming from your application, which must be calling the I don't have an answer for you regarding the number of subscribers. I agree that it should match the number of workers that are actively holding clients. With the information that you provided I can't explain why you see only one. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick answer. regarding the number of subscribers i still get 1 all the time. my nginx.conf
my nginx balance-loader settings:
|
Beta Was this translation helpful? Give feedback.
-
so turns out the problem was with my webserver instances, they weren't working probably. Thanks for your insights it made me look at the problem from a different aspect. |
Beta Was this translation helpful? Give feedback.
-
hello
i followed exactly the official documentation on how to set up flask-socketio multi worker with nginx:
socketio.init_app(app, async_mode='eventlet', manage_session=False, message_queue='redis://')
and updated the /socketio location as specified
my website is working fine but when i monitor flask-socket using
redis-cli monitor
i keep constantly getting this publish disconnect message from flask-socketioand when i check how many subscribers to the flask-socketio channel using
redis-cli PUBSUB NUMSUB flask-socketio
which i expect it to be equal to the number of workers
i keep getting 1
what am i missing here?
why flask-socket keeps constantly publishing messages
and why i can't see all the subscribers.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions