Mostly we connect with Serial for ESP32, I'm not sure why it would be quite as slow as you're seeing over TCP.
115200 baud would be right for ESP32. The 'Unknown error code 31' seems like it comes from the serialport library though. I quick google showed: https://github.com/serialport/node-serialport/issues/1961
Sounds nuts but have you tried a different USB cable/port?
@Gordon started
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.
Mostly we connect with Serial for ESP32, I'm not sure why it would be quite as slow as you're seeing over TCP.
115200 baud would be right for ESP32. The 'Unknown error code 31' seems like it comes from the serialport library though. I quick google showed: https://github.com/serialport/node-serialport/issues/1961
Sounds nuts but have you tried a different USB cable/port?