I just did the simple thing and used a firmata library for nodejs (I used jonny-five). I dont know C#. When using a firmata library you run all your code on your pc and use the serial connection to communicate to the arduino.
Firmata on ESP32 (WROOM)
3 projects | reddit.com/r/esp32 | 13 Jun 2022
Found this on Twitter. Not sure if somebody already posted this.
1 project | reddit.com/r/ProgrammerHumor | 16 Feb 2022
Arduino, JohnnyFive, Socket io and React
2 projects | dev.to | 22 Sep 2021
1 project | dev.to | 21 May 2021
1 project | reddit.com/r/ProgrammerHumor | 5 Feb 2022