Connection to websocket application

Node.js application that I uploaded in the render, creates a websocket server for real-time communication, and I am creating an application that will run as a service connecting to this websocket server, however, when placing the domain, the service does not find the server websocket, has anyone experienced this?

HI there,

Can you please share more details of the error you see?

Regards,

Keith
Render Support, UTC+10 :australia:

Hi, I’ll go into more detail, I have a node application in which I create a websocket server in conjunction with the API, and this application is in render… however I need to create an application that will run as a service on a machine, which must be connecting to this websocket server, I did the tests locally and doing the redirection is working perfectly… however, when trying to connect to the websocket server hosted in the render, it cannot be found

Hi there,

Is the service connection to the web socket running on Render or externally?

If it’s external, connections to a public web service, it can only connect on port 80/443 (HTTP/HTTPS where HTTP is automatically redirected to HTTPS) through the onrender.com domain. The request is then proxied to your service using the port it listens to. You don’t connect directly to the port your service uses.

If it’s an internal connection, you do use your services listening port, but you don’t use the onrender.com domain, but rather the service name of the service you are connecting to.

Reagrds,

Keith
Render Support, UTC+10 :australia:

Hello

The connection to the websocket server will be performed externally…
The websocket server is in render, and the service will run on the personal machine, communicating with the server.

If I configure port 443, it even gives me a successful connection return, but after that it gives an error and closes the service

Hi there,

Can you please use our dashboard to open a ticket directly with us?

Regards,

Keith
Render Support, UTC+10 :australia: