Open dederomagnolo opened 5 months ago
hello may i ask what format of websocket did you use in render? in local my websocket in working but on render, i cant seem to connect my nodejs server
Hey @Sencin, you can share the error you getting, more easy to debug. The only thing I remember, in the beggining I had connection problems cause I tried to connect to the host using ws://
instead of wss://
. Render interprets it as an insecure connection.
Does it need a SSL since it's a secure connection. Or does render already have SSL for Web sockets?
I think they already have. Not clear for me too, but take a look on this thread on their community: https://community.render.com/t/connect-via-websockets/8355/3
and share if you get any success.
Hi all and @gilmaimon. First of all, thanks for this lib and for all the support for the community. This is very useful and I could learn A LOT about websockets reading the discussions here.
Describe the bug I have a problem on my system with node js wss server + esp8266 clients.
my clients enter in a kind of loop when the server is authenticating them and immediately the connection is closed. I can see the close event only on client side and it is returning 1002 (protocols errors).
Technical settings:
From my esp8266 client, I am calling the function below to connect to the server (minimal code) on my
loop:
My suspicion is that my esp8266 client is not reacting well to this authentication function cause I am not handling it correctly because when I pull off one of the async calls I do, they are able to connect and to keep the connection estable. I tried to add this timer
shouldTryToReconnect
to make the client wait 5 seconds before another tentative but without success.. Can you help me to understand what I am doing wrong?