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 });
???
@MaksR started
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.
I try so:
how to use WSS correctly?
???