A simple and extensible framework for ESP32 based IoT projects with a feature-rich, beautiful, and responsive front-end build with Sveltekit, Tailwind CSS and DaisyUI. This is a project template to get you started in no time with a fully integrated build chain.
When the ESP is temporarily disconnected, the frontend tries to reconnect every 2000 ms. This means when the ESP becomes online again, all those connections become active.
The hot reloading creates new connection as the unresponsive timeout is not cleared.
Description
By changing the EventSource reconnect to use a timeout instead of a interval and clearing the unresponsive timeout at disconnect only one connection will be active at a given moment.
Purpose
Description
By changing the EventSource reconnect to use a timeout instead of a interval and clearing the unresponsive timeout at disconnect only one connection will be active at a given moment.