You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Tylersuard
changed the title
[Issue]: How to use websockets with Flask?
[Issue]: How to use IOWebsockets with Flask?
May 6, 2024
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
The text was updated successfully, but these errors were encountered: