How do I implement long polling in MVC3 jquery application
I want to send a request to the server side from asp.net jquery html client side application.
the server side code will execute the task and once it completes, it will output some jpeg files.
the problem is that i want to automatically notify the web application when the jpegs are ready.
i am sending a call to the service every 2 seconds and it's polling way too much.
i want to somehow send a call to the server and then i want to get the response when the jpegs are in the directory.
i am using c# asp.net v4
SignalR is a fantastic client-server communication library that does all of the backwards-compatibility heavy lifting for you.
you can use Async Controller for such purpose. Please see this link for details Async controllers usage