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

后端 未结 3 1018
执笔经年
执笔经年 2020-12-29 09:34

How could I implement a Comet architecture in a ASP.Net MVC?

3条回答
  •  伪装坚强ぢ
    2020-12-29 10:00

    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.

提交回复
热议问题