You are reading a single comment by @MaksR and its replies. Click here to read the full conversation.
  • I try so:

    SPI3.setup({ mosi:B5, miso:C11, sck:C10 });
    var eth = require("WIZnet").connect(SPI3, D0);
    eth.setIP({ip : "192.168.1.13",subnet : "255.255.255.0",gateway:"192.168.1.1",dns:"192.168.1.1"});
    
    var WebSocket = require("ws");
    const ws = new WebSocket('echo.websocket.org', {
        port: 80
    });
    
    ws.on('open', function() {
        console.log('opened');
        ws.send("hello world");
    });
    ws.on('message', function(message) {
        console.log('received: ', message);
    });
    

    how to use WSS correctly?

    ws = new WebSocket('wss://echo.websocket.org', {
        port: 443
    });
    

    ???

About

Avatar for MaksR @MaksR started