You are reading a single comment by @J{a}SON and its replies. Click here to read the full conversation.
  • i have confirmed that 1v96 works with espruino as the websocket client. i am still receiving an error when espruino is the server, using the example code, and i use this code in node.js

    Error: Server sent a subprotocol but none was requested

    const WebSocket = require('ws');
     
    const ws = new WebSocket('ws://192.168.1.203:8000/', {
        protocol : "echo-protocol",
        protocolVersion: 13 });
     
    ws.on('open', function open() {
      ws.send('something');
    });
    
    ws.on('error', function(err) {
        console.log(err);
    })
     
    ws.on('message', function incoming(data) {
      console.log(data);
    });
    
About

Avatar for J{a}SON @J{a}SON started