WebSocket Trigger
- 14 Oct 2024
- 1 Minute to read
- Print
WebSocket Trigger
- Updated on 14 Oct 2024
- 1 Minute to read
- Print
Article summary
Did you find this summary helpful?
Thank you for your feedback
The WebSocket Trigger template 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-specififactions:
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.
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.
Was this article helpful?