Stream response from a redis worker

I currently have a backend written in python flask that makes use of a redisqueue worker to run openai requests in the background, then return the result. Does anyone know if it’s possible to have a worker stream the intermediate text in a way that can be received by a react typescript frontend? Is there a better solution for this?