Actions2
Broadcast
AI-generatedSummary
Broadcasts a message to all connected clients of the specified APO WebSocket Server node.
Inputs
- serverNodeName (required) — Name of the APO WebSocket Server node in the same workflow.
- message — Message content to send. Used when useInput is false or no input items are available.
- useInput — Whether to use the first input item's JSON as the message, replacing the message field.
Output shape
array
Single-item array containing a result object with JSON data and pairedItem index. Throws NodeOperationError if the specified WebSocket Server node is not found in the workflow or if no clients are connected. Successfully sends to clients with readyState 1, counting sent and errors.
Examples
Example 1: Broadcast a static message to all connected clients.
Set serverNodeName to the WebSocket Server node name, leave message as desired text, keep useInput disabled.