Closed
Description
Suggestion
Enable Server-Sent Events (SSE) in @configu/proxy
. The proxy should trigger SSE based on a cron job interval string passed as a query parameter to the POST /export
, which runs the export again and sends back an SSE each time the interval hits.
Motivation
This feature provides real-time updates via SSE for clients, improving responsiveness and enabling automated configuration exports at defined intervals or upon receiving hooks.
Context
The SSE should respond either based on a cron job syntax provided by the user or when a hook is received at the proxy, ensuring configurations are exported and evaluated dynamically.
- https://en.wikipedia.org/wiki/Server-sent_events#:~:text=Server%2DSent%20Events%20(SSE),client%20connection%20has%20been%20established.
- https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events
- Use fastify <-> SSE module - https://fastify.dev/ecosystem/