Any Websocket pros in the community?
I am curious about using the Photon to control a toy car from a webpage. The cloud connection is great for IoT projects but the ~1200 ms delay is not so good for driving a toy car. I have noticed a few libraries with Websockets and a good test.ino program that works great for what it is setup to do.
I have, what I want working at https://github.com/hpssjellis/Particle-Spark-Core-Photon-Websocket-Hack but it is a hack that I made using a very old Nodejs package and my own attempt at a Websocket. It works and only takes about 10 ms to communicate with the Photon. It
sends a single character at a time, which is more than enough to control my toy car.
Just wondering if anyone has suggestions for how to make my program a bit more modern and less of a hack.
The old topic is at