You are reading a single comment by @countxerox and its replies. Click here to read the full conversation.
  • Hi Ducky, thanks for this example.
    I added a line to print the value of msg in the console...

    var server = require('ws').createServer(onPageRequest­);
    server.listen(8000);
    server.on("websocket", function(ws) {
        ws.on('message',function(msg) {
          console.log("Pos = "+msg);
        });
    });
    

    I've connected to the ESP8266 over TCP using the Espruino Web IDE so I can see the console.

    On the PC I see the value updating as I move the controls but when I try the same from a tablet or phone I don't see the value of msg updating, I've tried chrome and safari browsers, why?

About

Avatar for countxerox @countxerox started