* feat: add hx-ws WebSocket extension with accompanying tests and debug utilities.
* feat: Refine WebSocket extension initialization and processing logic, preventing re-initialization and ensuring comprehensive element handling.
* refactor: Enhance WebSocket connection handling with improved event triggering and dynamic configuration management
* refactor: Introduce dynamic configuration management for WebSocket connections, consolidating default settings into a dedicated function for improved maintainability and clarity.
* refactor: Update WebSocket extension to improve reconnection logic and dynamic configuration handling, enhancing maintainability and clarity.
* docs: Expand WebSocket extension documentation with detailed architecture, attributes, message formats, and example use cases for improved clarity and usability.
* refactor: Update WebSocket message structure to include default values for channel and format, enhancing clarity in documentation and implementation.
* feat: Add default `channel` and `format` values to WebSocket messages if not provided.
* move to registerExtension to avoid extension upgrade confusion
* Also fix window.htmx export to make modules work with extensions and add initial types file
* update docs on module use
---------
Co-authored-by: MichaelWest22 <michael.west@docuvera.com>
Implement native SSE handling with configurable stream modes (once/continuous), automatic reconnection with exponential backoff, and lifecycle events.
Streams are configured via hx-stream attribute or htmx.config.streams global defaults.
Update test infrastructure with ReadableStream-based mocking utilities.
# Conflicts:
# src/htmx.js