You have an old version of Espruino on your ESP8266 (and the wrong version for the flash chip you're using). I'd suggest flashing @tve's latest version - and make sure to select the correct version for the size flash chip that your ESP8266 has.
I think at least one of the people who's active on the gitter channel has used websockets on the ESP8266 and might be able to point you in the right direction. I'd try that - a lot of the ESP8266 people use the gitter channel.
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.
You have an old version of Espruino on your ESP8266 (and the wrong version for the flash chip you're using). I'd suggest flashing @tve's latest version - and make sure to select the correct version for the size flash chip that your ESP8266 has.
I think at least one of the people who's active on the gitter channel has used websockets on the ESP8266 and might be able to point you in the right direction. I'd try that - a lot of the ESP8266 people use the gitter channel.