I’m using and to control my Arduino board from the browser in realtime, and the reverse also applies.
The board contains 7-segment displays, rotary encoders, button and led, all connected to the Arduino Uno. The program in the Arduino simply listen to any click on the button or rotation on rotary encoders and send it to thru a serial connection. The Arduino also listen to any message sent by node, for instance, to set the display or led.
The events generated by Arduino are handle