Currently every example of websockets in the agentchat_websockets.ipynb notebook involves creating a server like so:
with IOWebsockets.run_server_in_thread(on_connect=on_connect, port=8765) as uri:
I do not want to use this server, I want to use Flask. I have written a wrapper around the IOWebsockets object and passed in my websocket as an argument. The code runs but nothing ever gets sent back across to the frontend. How can I use the IOWebsockets class without the .run_server_in_thread method?
Describe the issue
Currently every example of websockets in the agentchat_websockets.ipynb notebook involves creating a server like so:
with IOWebsockets.run_server_in_thread(on_connect=on_connect, port=8765) as uri:
I do not want to use this server, I want to use Flask. I have written a wrapper around the IOWebsockets object and passed in my websocket as an argument. The code runs but nothing ever gets sent back across to the frontend. How can I use the IOWebsockets class without the .run_server_in_thread method?
Steps to reproduce
No response
Screenshots and logs
No response
Additional Information
No response