mrb398
mrb398

Reputation: 1317

Grabbing status updates via WebApi and AngularJS?

I'm trying to determine the best/reliable way to configure my angular application so that I can submit requests to a webapi, and periodically check the progress of the logic running on the server.

Making the api calls isn't in question, determining a way for angular to grab status updates is my main question here.

Upon calling the initial api, do I setup a timer that periodically calls a different API method that is able to see and return the status?

I'm open to any ideas/solutions

Upvotes: 0

Views: 61

Answers (1)

Matías Fidemraizer
Matías Fidemraizer

Reputation: 64923

You could go that route, but I believe the answer is SignalR.

At the end of the day, you send a request to an API and you're also subscribed to a notification channel to get updates, and the server can publish message to the whole channel.

Upvotes: 3

Related Questions