Are Azure Service Bus Notification Hubs sections working with websites and javascript?

I am interested in using Azure Service Bus notification hubs. However, my first โ€œclientโ€ will be a web-based connection to an ASP.NET MVC site using Knockout. I'm currently trying to pass SignalR to notify clients.

However, it looks like it would be a lot easier if I could use SB Notification Hubs. All examples are Windows or iOS.

Can you use Azure Service Bus notification hubs with WebSocket-based HTML clients?

+7
source share
3 answers

I am the program manager on the Service Bus team. There is no plan to support WebSockets in HTML as an output channel for notification hubs. At the moment, it is best to use SignalR, which can be scaled using the service bus.

What are the characteristics of Notification Hubs that make you say that SignalR would be preferable?

+3
source

We spent several days trying to do what you described, but we were not able to get SignalR / WebSockets to work on Azure Cloud. SignalR / WebSockets fails every time, spawning endless loop failures / reconnections. We were able to get SignalR / LongPolling (not WebSockets) to successfully work with the Azure cloud. Since then, we learned that the VM on Azure Cloud clearly does not support WebSockets. Our experience shows that you probably cannot use WebSocket-based HTML clients with SignalR running on the Azure cloud, although you can probably get LongPolling to work fine.

+2
source

Although there is no support now. This answer may be updated in the future due to these feature requests (marked as "Scheduled").

You can also add your voices to them in order to speed them up: https://feedback.azure.com/forums/218849-notification-hubs/suggestions/4621850-add-support-for-azure-notification-hubs-to-push -me

and here:

https://feedback.azure.com/forums/34192--general-feedback/suggestions/32466415-web-socket-support-in-notification-hubs

0
source

All Articles