python-esppy
python-esppy copied to clipboard
Use web socket in browser for streaming images and charts
Currently, streaming charts and images are done by pushing the data updates through a Jupyter communicator. This creates a lot of overhead in moving the data across the wire, as well as creating extra threads in Python to handle the data processing in the background.
It might be a better long-term solution to connect directly to the ESP server from a web socket in the browser. This should reduce a lot of overhead. The main reason it wasn't done this way originally was because of authentication. There would need to be a way for the web browser to authenticate to the web socket on the ESP server (when authentication is enabled).
Ethem did a prototype of a streaming images module using web sockets in the browser and it definitely showed promise.