This isn’t really feasible to implement if your app runs on lambda or edge functions, you’d need a persistent server.
Here’s a diagram I drew of a simple approach that came to mind: https://gist.github.com/b0o/a73af0c1b63fccf3669fa4b00ac4be52
It would be awesome to see this functionality built into BricksLLM.