1

I have a WCF service and I need to setup the service to broadcast notifications to all the connected clients. However the call to WCF is made from jquery. So I need a method to be able to call back the jquery methods from WCF for broadcast. So basically I need a way to be able to call the jquery methods from WCF.

Please let me know if its possible and also any sample to illustrate it.

4

1 回答 1

0

直接从 JQuery 为您的方案调用 WCF 不是一个好的解决方案。

由于防火墙等问题,您不能在 Intranet 环境之外使用 WCF 双工。

你有浏览器客户端,你需要广播。尝试使用 xmpp 的任何实现,例如SignalR。在这种情况下,从头开始实施 SignalR 比维护当前的 WCF 代码要容易得多。

于 2013-04-30T22:51:01.760 回答