WebSocket Trigger

Prev Next

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-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.

  • 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.