Can't connect to free WebApp on Azure through WebSockets

Jake Holding 0 Reputation points
2023-09-03T14:37:12.32+00:00

Hi!

I'm working on a project in Unity that is trying to connect to an Azure Web App (through the WebSocketSharp library), hosting a Node.js WebSocket server that my clients can connect to. I went with Web App because there's a Linux free tier that seemed to do everything I needed. I've tested the Node.js program on my localhost and it works fine, and deployed it to the Web App with the necessary ws plugin. However, every time I try and connect to the address through my Unity project, the Azure Web App does indeed acknowledge the request in the monitoring log, but I receive the 1015 error - which, if I'm not mistaken (I'm a massive newbie) indicates an SSL error. But SSL authentication doesn't seem to be an option in the free tier of Web Apps, and switching my WebSocket address from "wss://" to "ws://" doesn't even attempt to register a connection to the server. I've also tried configuring an Azure Front Door frontend to manage the inbound connections, which correctly displays the server code output when opened in a web browser, but still returns 1015 in Unity.

Can anyone help? Thanks!

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

1 answer

Sort by: Most helpful
  1. AirGordon 7,105 Reputation points
    2023-09-03T19:59:27.6166667+00:00

    Have you enabled the Websockets in the configuration?

    212554-image.png

    Web Sockets are now supported for Linux apps on Free App Service plans. We support up to five web socket connections on Free App Service plans.