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

Singular socket connection #43

Closed runeharlyk closed 2 months ago

runeharlyk commented 2 months ago

Purpose

Closes #29 that states that the current setup requires up to 3 concurrent connections to the server per user, which limits the number of total users. This pr replaces NotificationEvents with EventSocketwhich can

This make it possible for a client to subscribe to a number of events/topics that is of interest. This can be done in +layout.ts or as per route. This saves bandwith as only relevant data is sent to the client

Overall changes: