You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@catarak when you made that change, were you working off a local version of your editor? I get errors when I try to do this. I assume they are HTTPS related since I don't have any certificates or exclusions for localhost setup.
No, I was working with the production version of the editor. In the p5 serial library you might have to check if the connection is http or https, as you might not be able to mix them. You were trying wss with an http connection?
Sadly, Chrome doesn't allow HTTPS (web or websocket) connections to localhost without at least a self-signed certificate running on the same machine. (I am not sure why it worked for you which is what prompted my question.) Unfortunately, users will still have to jump through hoops to allow the connection with a self-signed cert.
Longer term, we can probably come up with a solution using Let's Encrypt and a localhost type of domain name: localserial.processing.org (which would point to 127.0.0.1) or the like.
We also need HTTPS for getUserMedia and related things so it makes sense to require it with the editor but would it also be possible to allow plain HTTP in the online editor in the short term?
I just updated the p5.js web editor to use https, which broke @tigoe's p5.serial example. I had to change the file p5.serialport.js, on line 78, to
to get it to work.
The text was updated successfully, but these errors were encountered: