I tried your suggestion to check the if the socket is closed before attempting a request. The results are varied. I can call around 30 requests in a row using a 10 second interval, but eventually the socket remains open and no further requests are possible.
I tried using a local server, my Raspberry Pi to simply echo back a status check and being local the response was very fast but I was unable to request as many calls as using an external website. Strange.
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.
Hi Gordon, DrAzzy,
I tried your suggestion to check the if the socket is closed before attempting a request. The results are varied. I can call around 30 requests in a row using a 10 second interval, but eventually the socket remains open and no further requests are possible.
I tried using a local server, my Raspberry Pi to simply echo back a status check and being local the response was very fast but I was unable to request as many calls as using an external website. Strange.
Will continue to test with other parameters.