Websocket connection failed azure

Prasenjit Das 1 Reputation point
2021-07-28T07:30:43.61+00:00

I am trying to create a chat application using nodejs and socket IO .My application works perfectly on local but its not working in azure app.
The error says websocket connection failed.
Please help

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,755 questions
{count} votes

2 answers

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 21,506 Reputation points
    2021-07-28T14:17:23.1+00:00

    Thanks for asking question! Could you please confirm if you running on Linux Free sku ?

    As "Web Sockets are not currently supported for Linux apps on Free App Service Plans. We are working on removing this limitation and plan to support up to 5 web socket connections on Free App Service plans."
    You may refer to this doc link: https://learn.microsoft.com/en-us/azure/app-service/faq-app-service-linux#web-sockets

    Incase you are on running on windows please confirm if you have enabled the Web sockets on from configuration tab.

    118752-webapp-microsoft-azure.png

    Check this link: https://azure.microsoft.com/de-de/blog/introduction-to-websockets-on-windows-azure-web-sites/?WT.mc_id=-blog-scottha

    Let us know if you have further query on this or issue remains.


  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.