127.0.0.1 is the loopback address - is the websocket server running on the same device that is trying to connect to it? That is the only time 127.0.0.1 will work.
No I am trying to use the ESP8266 to access the websocket while the Leap Motion is connected to my computer.
I switched out the 127.0.0.1 address to the Ip address of my own computer and the same port, but no change :(. Do you have any other advice on other things I can try?
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.
127.0.0.1 is the loopback address - is the websocket server running on the same device that is trying to connect to it? That is the only time 127.0.0.1 will work.