Do you have a basic MRE:
This is very interesting.
You can replace the FastAPI calls with using a websocket, put out by dash-extensions.