Markus
Markus
are you sure that you are running the latest release of the lib? 2.3.1 is the latest release. ``` 21:05:37.544 -> Sec-WebSocket-Protocol: arduino 21:05:37.544 -> 21:05:37.544 -> User-Agent: arduino-WebSocket-Client ```...
yes if this happens its a bug, but can you check if this code here is in you version of the lib? https://github.com/Links2004/arduinoWebSockets/blob/c5900db6364e76442e06a46f0d721af8bb5ef8b3/src/WebSocketsClient.cpp#L646-L649 my expectation is that the code here...
can you please retest with the new version `2.3.2`
can you please change ```cpp // add extra headers; by default this includes "Origin: file://" if(client->extraHeaders.length() > 0) { handshake += client->extraHeaders + NEW_LINE; } ``` to ```cpp DEBUG_WEBSOCKETS("[WS-Client][extraHeaders] length:...
this is normal and is based on how platform io is working. you have to ways to get the "Wifi.h" auto detect via: ``` lib_ldf_mode = chain+ ``` or manual...
ok, I where able to reproduce after some updates. but I dont understand why this happens for the ESP8266 `lib_ldf_mode = chain+` is working fine, but with the ESP32 it...
the problem is that `chain+` is required for ESP8266 and the `NO_GLOBAL_INSTANCES` define see https://github.com/Links2004/arduinoWebSockets/issues/624 forcing `chain` for the lib is no option since it will brake other code bases.
please enable the debug output to see the HTTP headers and messages. this will help to get to the problem.
for some time you had a working connection. and at some point your server needed more then 5001ms to answer (5 sec), as result the lib declares the connection dead....
the copy of the function will fail for the ESP8266 since it will be there 2 times with the `SSL_BARESSL` define. moving it is the better option here ;) #756