Search code examples
node.jsazurehttp-status-code-503node.js-client

Windows Azure Node JS WEBSOCKET HandShake Fails 503 Error


I've deployed my nodeJS server in windows azure. My client fails while connecting to server and handle the following error :

WebSocket connection to 'wss://ooplrfrfranode.azurewebsites.net/socket.io/1/websocket/lHrd-DOydinODjbS7-tc' failed: Error during WebSocket handshake: Unexpected response code: 503.

Any Help please. Thanks.


Solution

  • Windows Azure Web Sites has recently added support for the WebSocket protocol. Both .NET developers and node.js developers can now enable and use WebSockets in their applications.

    There is a new option on a web site’s Configuration tab to enable WebSockets support for an application.

    enter image description here

    Source: http://azure.microsoft.com/blog/2013/11/14/introduction-to-websockets-on-windows-azure-web-sites/