No connect with server.....
The code in this example does not even connect to echo.websocket.org. The compiler does not produce any errors. Esp connects to my Wi-Fi but does not connect to the server. Neither with my example server written on a node or with an echo-server from your exemple. Please, help)...
Similarly with my device. Esp connects to Wi-Fi but does not connect to the server.
same thing happened with me, my device also did't connect to the server i also tried to connect with my server written in node.js but did't work
same thing happened with me, my device also did't connect to the server i also tried to connect with my server written in node.js but did't work
I recommend you using https://github.com/gilmaimon/ArduinoWebsockets, i tested webclient example. It works flawlessly
I tested your code in local server and It worked. Let me tell you what I changed. 1- in client side your port is 8080, in node.js side is 8081, they have to be same. 2- I changed this line bool connected = client.connect(websockets_server_host); 3- const char* websockets_server_host = "http://localhost:5000"; I added port embedded to link So this is my test, you can adapt it to yourself.
The code work if not use WiFiClientSecure, if set WebSocketClient ws(false) and port 80, no problem. But in mode secure with port 443, not work.
Yea - any guidance on wss:// ? I'm attempting to hit a wss://blah.co:8080 but all I get is Not Connected!
Using WebSocketClient ws(true);
ws.connect("blah.co", "/", 8080);
Also I've tested this WS independently and it works so can't seem gather what the issue is.