HTTPS: Secure Websockets only

I using Javascript Library by Beardicus and trying to establish a connection within Chrome to Line-us from the p5js editor via https. Unfortunately i can’t connect via ws://. Only via wss:// which isn’t supported by the plotter.

Uncaught SecurityError: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.

Is there a solution using the websocket connection from a https connection?

We have something in very early test that you’re welcome to try. You’ll need beta firmware and it uses a test back-end but it will allow wss connection to your Line-us. We did look at wss directly to Line-us but the processor isn’t up to the job and anyway there would be cert issues so we’ve implemented a server relay. This means that you can access your Line-us from anywhere on the internet if you want to as well.

The way it works (and as I say, it’s early test so this may change) is that there’s a gcode to create a machine key. You need to be directly connected via a regular TCP socket to do this; telnet is the easiest way. Then you connect your app to a a secure web socket URL on our server that includes the key and if the Line-us is on and also connected it will look to the app as if it’s talking to a local Line-us.

If you (or anyone else) would like to give it a try DM me your Line-us serial number and I’ll configure you for the beta firmware and let you know a bit more detail on the key etc.

Sounds great. I’ll connect my plotter tomorrow and will send you the serial. My p5js library is also in early stages. I would like to have it running in October.

I am currently writing a library that logs the drawing commands to a canvas element and converts it to gcode for plotters. That might be a solution for simpler drawing of SVGs, too.