Closed
Description
Hi Markus,
on ESP32 it seems that setNoDelay(true)
does not work and causing the "Bad file number" error when WebSocketsClient connects to a server.
setNoDelay(true)
is called in connectedCb
in WebSocketsClient.cpp:
arduinoWebSockets/src/WebSocketsClient.cpp
Lines 865 to 866 in a14b6b7
I tried to follow the path to see where the error comes from, but I ended up in lwip_setsockopt_r
in lwip.h
At this point my knowledge left me :(
I think the ESP32 should be removed from from the #if
macro - what do you think?