theelims / ESP32-sveltekit

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.
https://theelims.github.io/ESP32-sveltekit/
Other
90 stars 15 forks source link

Make eventSource use timeout for reconnect #34

Closed runeharlyk closed 3 months ago

runeharlyk commented 3 months ago

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.

theelims commented 3 months ago

Thank you so much for this contribution.