Client not receiving emits that are prompted by other emits #899
Answered
by
miguelgrinberg
Christiaan-Doubell
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
miguelgrinberg
Mar 26, 2022
Replies: 1 comment 1 reply
-
The Socket.IO client uses threads and low-level sockets. Both of these use blocking operations. In a multi-threaded application that is not a problem, but your gateway uses eventlet, which is an asynchronous framework, so those blocking calls are going to block everything. Are you familiar with monkey patching? That might help. https://eventlet.net/doc/patching.html |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Christiaan-Doubell
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Socket.IO client uses threads and low-level sockets. Both of these use blocking operations. In a multi-threaded application that is not a problem, but your gateway uses eventlet, which is an asynchronous framework, so those blocking calls are going to block everything.
Are you familiar with monkey patching? That might help. https://eventlet.net/doc/patching.html