22

Does anyone know how to code up long-polling AJAX requests (for server PUSH notifications) in ASP.NET MVC? Whenever I do it, it seems that only the last browser to open up a window gets the notifications. As if IIS/ASP.NET were canceling the last request because it was hung or something.

grenade
  • 31,451
  • 23
  • 97
  • 126
Andrew Arnott
  • 80,040
  • 26
  • 132
  • 171

1 Answers1

33

I recently wrote a simple example of a Long Polling Chat Server using MVC 3 Async Controllers based on a great article by Clay Lenhart

You can use the example on a AppHarbor deployment I set up based on the source from the BitBucket project.

Also, more information available from my blog post explaining the project.

saluce
  • 13,035
  • 3
  • 50
  • 67
Jacob
  • 3,629
  • 3
  • 36
  • 44