Shawn Van Every
Shawn Van Every
This is an issue as some browsers aren't allowing non-secure socket connections from secure origins. Chrome 69 allows it to localhost which helps but Safari and Firefox are blocking. Need...
need broadcastit for the data and sendit for most other things
From https://github.com/processing/p5.js-editor/issues/167 "Does the editor restart the server on each run? I was having issues with zombie console logging when sketches are closed."
Might be useful to check serial.bufferUntil(inByte) and serial.buffer(size) https://processing.org/reference/libraries/serial/Serial_bufferUntil_.html https://processing.org/reference/libraries/serial/Serial_buffer_.html
node startserver.js 8081 ./startserver.js 8082 etc..
https://github.com/websockets/ws#how-to-detect-and-close-broken-connections