Hello , Welcome to MS Q&A
To enable WebSocket connections in Azure App Service, make sure the WebSocket protocol is activated in your App Service settings. Azure App Service restricts opening custom ports like 8000 for external access. Instead, configure your application to listen on the default ports—80 for HTTP and 443 for HTTPS—and manage WebSocket connections through these ports.
To enable the WebSocket protocol in your Azure App Service, follow these steps:
Access the Azure Portal: Navigate to the Azure portal and locate your App Service.
Go to Configuration: In the App Service menu, select the "Configuration" option.
Enable WebSocket: Under the "General settings" tab, find the "WebSocket" option and ensure it is set to "On".
This setting allows your App Service to support WebSocket connections. Make sure your application is also configured to handle WebSocket connections properly. If you need further assistance, refer to the Azure documentation on WebSocket support.
Please let me know if you have any further questions
Kindly accept answer if it helps
Thanks
Deepanshu