You are reading a single comment by @MrTimcakes and its replies. Click here to read the full conversation.
  • Hey, You shouldn't need to add anything to the code to make it print the message to the console, the

    ws.on('message',function(msg) { print("[WS] "+JSON.stringify(msg)); });
    

    line does that. However, perhaps you need to JSON.stringify it first.
    I just pasted the code I posted above your comment and put it on my ESP, connected and it worked perfectly from both my desktop Chrome, and my Android Chrome. Perhaps you have an out of date web-browser that doesn't support web-sockets?

About

Avatar for MrTimcakes @MrTimcakes started