How To Implement ReverseAJAX (Comet) in ASP.Net MVC

喜夏-厌秋 提交于 2019-11-30 05:15:30
SDReyes

The paid alternative

There are great comments about the question in this thread.

And based in the fact you can use handlers in a MVC app:

WebSync

will do the work : )

As long as you need to implement server push support onto your ASP.NET MVC application you will need some extra functionalities like detection of client status etc. I suggest you to try PokeIn comet ajax library which you can find sample project here

I doubt you will find something out of the box for MVC but you can always implement the client side code that handles timeouts and reconnects to an AJAX-enabled WCF service that polls for whatever event you want to be notified for. Be sure to set the timeout of the service to a higher value.

Edit 24.11.2013 Since the original question was posted SignalR was released which is a library to do just that.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!