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
118 stars 22 forks source link

Make eventSource use timeout for reconnect #34

Closed runeharlyk closed 8 months ago

runeharlyk commented 8 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 8 months ago

Thank you so much for this contribution.