-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add debug mode for web server configuration - Introduced a new debug flag in the WebServer settings to enable detailed logging. - Set the default value for the debug mode to false in the configuration. - Updated validation logic to include the new debug flag for web server settings. * feat: enhance SSEHandler with debug logging for client connections - Added debug logging to the SSEHandler for tracking client connections and notifications. - Logs the total number of connected clients when a new client connects, a notification is sent, or a client disconnects, contingent on the debug mode being enabled in the web server configuration. * feat: enhance SSEHandler with improved connection management and debug logging - Added context cancellation for better cleanup of client connections. - Implemented heartbeat mechanism to keep connections alive and detect issues. - Enhanced debug logging for client connection events, including successful notifications and errors during marshaling and writing. - Updated client channel handling to prevent blocking and improve notification delivery. * feat: implement singleton SSE manager for improved notification handling - Added a singleton SSEManager to manage server-sent events (SSE) for real-time notifications. - Implemented methods for subscribing and unsubscribing notification callbacks. - Enhanced the initialization process to ensure a single event source is used and cleaned up on page unload. - Updated the component initialization to utilize the new SSEManager for handling notifications.
- Loading branch information
Showing
5 changed files
with
121 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters