Reputation: 15872
Does Azure support the use of WebSockets for .NET, if so how can a Websocket connection be initiated and handled?
Upvotes: 4
Views: 5115
Reputation: 41638
Web Sockets are now supported in Azure Web Sites. To use them, go to the site Configuration page in the management portal and turn on Web Sockets.
Upvotes: 4
Reputation: 2275
As Sandrino says this is not possible unless you have win8/2012 with .net 4.5. However, that´s if you are running SignalR (or WebSockets in 4.5 of course).
We have been using websockets on Azure for quite some time now, and it is working really well. You can try it at http://live.xsockets.net or our really simple playground http://xfiddle.net
Regards Uffe
Upvotes: 0
Reputation: 24895
At the moment this isn't possible. You'll only get websockets when Azure (Cloud Services or Web Sites) supports .NET 4.5 on Windows Server 2012 (IIS8), which isn't the case at the moment.
Today .NET 4.5 is only available in Web Sites with Windows Server 2008 R2 (IIS7).
Note: Technically you can use other solutions (as opposed to IIS) to get websockets in your Azure application (like Pokein, SuperSocket, ...)
Upvotes: 0