asp.net http server push to client

codingforfun picture codingforfun · Jan 23, 2009 · Viewed 27.3k times · Source

What's the best way to push info from a server to a web client? I know it's possible to setup sockets with Silverlight and Flash but I want to stay way from those two technologies.

Gmail seems to do a great job of polling the servers for updated emails and even their chat programs work great (all working in my web browser). Any ideas on the best way to do something like this but using asp.net?

Edit: If I have to poll, i'd like to poll the server every 2 or 3 seconds. So I'm not sure how to do this without bringing the web server to it's knees under heavy usage.

Answer

Christoph picture Christoph · Jul 10, 2012

Since you mention ASP.NET you should be using SignalR. See my other answer here: Instant notifications like Facebook