Thanks for asking question! It looks like you are 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
Let us know if you have further query on this or issue remains.