Not able to emit from background thread. Similar to: https://github.com/miguelgrinberg/Flask-SocketIO/issues/434 #2073
-
Hi, This problem has been described in #434 as well. I am a beginner programmer trying to implement a real-time transcription solution using Python Flask, React.js, and websockets. I am asking for help with my code. I seriously appreciate any and all help with this query. Note: This code is minimal, not my entire code server.py:
I would really appreciate all the help I can get. Thank you guys so much in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
Miguel responded to me in another place, suggesting that I enable logging for debugging purposes. I am looking into the docs currently to enable that. Thank you. |
Beta Was this translation helpful? Give feedback.
The lines that start with 127.0.0.1 comes from the web server. They show connections that ended. The ones that have
transport=websocket
in the URL are Socket.IO connections that ended. I really can't tell for sure because you are using many connections in your client, but at least some connections are going away for some reason.So first you need to figure out why you have many connections instead of just one. And second why they are getting closed.