if your frontend supports websockets you can use the realtime chat template i did it but with stock data