--- title: "WebSocket Trigger" slug: "websocket-trigger" updated: 2025-04-29T09:55:31Z published: 2025-04-29T09:55:31Z canonical: "support.dise.com/websocket-trigger" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.dise.com/llms.txt > Use this file to discover all available pages before exploring further. # WebSocket Trigger [The WebSocket Trigger template](https://bitbucket.org/diseinc/sampletemplates/src/main/Samples/WSTrigger/) supports triggering multiple Attributes from a single WebSocket connection. RegEx is used for matching WebSocket messages to the active-state. The CMS-data contains: - The WebSocket Url And any number (1-100) of Attribute trigger-specifications: - Attribute name (fully qualified with type) - Optional Active trigger. RegEx for setting active: true. - Optional Inactive trigger. RegEx for setting active: false. - Optional Timeout. The number of seconds to wait before automatically resetting an active Attribute. > [!WARNING] > - Rudimentary display of trigger-states. Useful for testing, but in production, the template would normally be hosted without UI. > - A self-reconnecting WebSocket-client implementation is used to avoid “DDoS“ing the server.