I'm trying to reason about plain (non-http) sockets. For plain sockets options is always false. So you always clear sendData (aka httpClientReqVar.dSnd) and that wipes out any data that might be in the socket.
I'll try to trigger it, the logic is not all that clear to me so perhaps I'm just not getting it.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I'm trying to reason about plain (non-http) sockets. For plain sockets
options
is always false. So you always clear sendData (akahttpClientReqVar.dSnd
) and that wipes out any data that might be in the socket.I'll try to trigger it, the logic is not all that clear to me so perhaps I'm just not getting it.