Websockets not working on azure app service

Ritesh Panditi 10 Reputation points
2024-07-24T19:40:31.43+00:00

I have been using websockets in my application and everything works fine locally, after dockerizing too.

But after I have deployed the app to azure, I see that the websocket connection is failing:

page-e3e051ef4d840b60.js:1 WebSocket connection to 'wss://<custome_name>.azurewebsites.net/backend/ws/<route_name>

whereas the same thing worked when I ran in on localhost instead of azurewebsites.

Also, in the configuration section of app service I am unable to see an option to enable websockets. Unable to diagnose this problem. I am currently on the Basic 3 (B3) plan, not free-tier.

Hope I get a fix soon.

Thank you,

Ritesh

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
440 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,898 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 66,461 Reputation points
    2024-07-24T20:00:15.1166667+00:00

    azure app service has stopped showing the websocket configuration question when its enabled by default. if you are using azure front door, it does not support websockets. also your internal firewalls may not support websockets. if you are using azure front door, then you need to use azure signal/r to get websocket support.


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.