first of all I am sorry for my poor question title, but I can't think of everything better right now.
What I want to do seems quite simpel. I want my API to return, for example, a simple string every second for like 10 times.
Is there any way to achive this with ASP.NET?
And yes, obviously the actual usecase is different. My API is scraping some data and returning it after that. The problem is the scraping takes like 70 seconds. I would like it to return the data in smaller packages, so my application can start processing the data earlier.
But the way to achive this - if there is any - should be the same. At least thats how I think of it.
Thanks for any help.
This is not possible with http.
You must do long pooling on client side or you can create a socket connection between client and server. Package signalr
is a great choice.