简体   繁体   English

Azure Notification Hub的Javascript客户端

[英]Javascript client for Azure Notification Hub

I was trying to find anything about it on the internet but without a success. 我试图在互联网上找到有关它的任何信息,但没有成功。 Let's say i'm building a simple jQuery / Angular.js application. 假设我正在构建一个简单的jQuery / Angular.js应用程序。

I want to to use some kind of PubSub service, like pusher or faye for instance, to add a live notifications to my app. 我想使用某种PubSub服务(例如pusher或faye)将实时通知添加到我的应用程序。 Does Windows Azure Hub Service allows me to do such thing? Windows Azure Hub Service是否允许我执行此类操作? Can i subscribe and emit azure hub notifications using plain javascript? 我可以使用纯JavaScript订阅和发出Azure中心通知吗​​?

Azure具有将消息直接推送到移动应用程序的API,但我相信您需要一个包含SignalR集线器的Web服务器,用于托管/服务能够接收此类通知的纯JavaScript应用程序(signalR将使用websocket,服务器发送的事件或后退到ajax,具体取决于客户端浏览器)。

Azure notification hubs pushes the notifications through platform notification services like APNS, GCM etc. Azure通知中心通过平台通知服务(例如APNS,GCM等)推送通知。

Please refer to http://msdn.microsoft.com/library/azure/jj927170.aspx 请参考http://msdn.microsoft.com/library/azure/jj927170.aspx

Here is the answer from the Windows Azure Program Manager 这是Windows Azure程序管理器的答案

Do Azure Service Bus Notification Hubs work with websockets and javascript? Azure Service Bus通知中心是否可以与websockets和javascript一起使用?

tl;dr TL;博士

No there isn't. 不,没有。 You can only emit. 你只能发射。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM