asp.net http服务器推到客户端 [英] asp.net http server push to client

查看:152
本文介绍了asp.net http服务器推到客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是从服务器推信息到Web客户端的最佳方式?我知道这是可能与Silverlight和Flash安装插座,但我想从这两个技术停留的方式。

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中似乎做轮询不凡更新电子邮件服务器,甚至他们聊天程序工作大(在我的网页浏览器所有的工作)。在最好的办法的任何想法,做这样的事情,但使用asp.net?

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?

编辑:
如果我有轮询,我想轮询服务器每2〜3秒。所以,我不知道如何做到这一点,而不大量使用下,使Web服务器把它的膝盖。

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.

推荐答案

既然你提到 ASP.NET 你应该使用 SignalR
看到我在这里的其他答案:<一href=\"http://stackoverflow.com/questions/11409563/instant-notifications-like-facebook/11410184#11410184\">Instant通知像Facebook

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

这篇关于asp.net http服务器推到客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆