'Stream text response .net 6 ApiController and call from javascript xhr
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
