Posted as a ‘Show and tell’ on Toit Discussions, Using websockets to update a browser page, including source.

A counter is updated on button clicks, without refreshing the page:

simple_page

This technique was used in the Fuzzy Logic project to directly manipulate the fuzzy model inputs on the ESP32, via an onboard webserver:

complex_page