9 Commits

Author SHA1 Message Date
Stu Kennedy
37cf0e8c6c
WebSocket Extension (hx-ws) Improvements (#3592)
* refactor: Enhance WebSocket extension with URL normalization, improved request management, and refined message handling for better reliability and clarity.

feat: Add manual WebSocket server script and enhance WebSocket documentation with detailed message formats and connection management improvements.

feat: Include event type in WebSocket messages and update documentation for message format

* refactor: Update WebSocket extension to connect immediately by default, enhance documentation on connection triggers, and improve message handling examples.

* feat: Introduce URL validation for WebSocket send attributes to ensure proper connection handling and prevent non-URL markers from being processed.
2025-12-19 11:42:36 -07:00
Stu Kennedy
7510030e59
Websocket extension for HTMX (#3547)
* 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.
2025-11-23 11:38:02 -07:00
Carson Gross
b747eb015b extensions proposal 2025-11-22 11:40:42 -07:00
Carson Gross
bee0e5cae0 web socket skeleton code for stu 2025-11-19 10:51:02 -07:00
Carson Gross
529242bb84 make handleTriggerEvent private 2025-10-31 16:53:00 -06:00
MichaelWest22
9ed426c987 implement ajax api 2025-10-28 15:37:51 +13:00
Carson Gross
8429333c9d docs cleanup 2025-10-26 21:58:18 -06:00
Carson Gross
333808d63f rename property 2025-10-26 14:19:35 -06:00
Carson Gross
2d0839a928 move code into four branch 2025-10-26 13:26:44 -06:00