As I understand it socket errors on ESP8266 are commonly down to the fact you can only have so many open sockets. It's not many - I seem to think I've read 5. As for catching I don't know. If you slow down your poll rate does that help?
Maybe jump on the gitter.im/Espruino/espruino channel. There's people more familiar with this stuff on there.
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.
As I understand it socket errors on ESP8266 are commonly down to the fact you can only have so many open sockets. It's not many - I seem to think I've read 5. As for catching I don't know. If you slow down your poll rate does that help?
Maybe jump on the gitter.im/Espruino/espruino channel. There's people more familiar with this stuff on there.