WebSocket connection to 'wss://sound-mazing.azurewebsites.net/?encoding=text' failed: Error during WebSocket handshake: Unexpected response code: 503
I followed the steps here to deploy and enable websockets in my Web app on Linux: https://learn.microsoft.com/en-us/azure/app-service/app-service-web-get-started-nodejs
According to this post, I expect to see my app running on port 80 or 443: https://stackoverflow.com/questions/42053499/socket-io-neterr-connection-refused/42062626#42062626
In the log I see that it picks up 8080 from process.env.PORT and correct url address:
2020-08-07T04:18:55.775274135Z 2020-08-07T04:18:55.775Z app Multi-peer Adapter listening on {"address":"::","family":"IPv6","port":8080}
2020-08-07T04:18:55.776195970Z 2020-08-07T04:18:55.776Z app baseUrl: https://sound-mazing.azurewebsites.net
This is docker log, again, I expected to see port 80 or 443 mapped to the container. I don't use Docker, this is the default 'Code' deployment.
2020-08-07T03:57:28.328Z INFO - docker run -d -p 6288:8081 --name sound-mazing_0_90fa6b26_middleware -e WEBSITE_CORS_ALLOWED_ORIGINS=* -e WEBSITE_CORS_SUPPORT_CREDENTIALS=False -e WEBSITE_SITE_NAME=sound-mazing -e WEBSITE_AUTH_ENABLED=False -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=sound-mazing.azurewebsites.net -e WEBSITE_INSTANCE_ID=d8d03614bc510cc5857017d2e5db96abd9ca95b7444ce9f96afd5266abaaa99e appsvc/middleware:1.2.8 /Host.ListenUrl=http://0.0.0.0:8081 /Host.DestinationHostUrl=http://172.16.1.3:8080 /Host.UseFileLogging=true