I'm trying to understand how to stream text back to the front end with javascript and .net 6.
On the server I have an ApiController that has a GET request in it like below
public async Task<string> GetTsBars(string symbol,string interval,string unit,string barsback,string startdate,string sessiontemplate)
I know how to call this normally with ajax but I can't figure out how to convert this into a streaming request that will keep pushing data to the client that I can then read and use on the front end. Any links to examples would be great!
Thank you all in advance, Tommy