Actions2
Send Message
AI-generatedSummary
Send a message to a specified WebSocket server URL and optionally wait for a response within a given timeout period.
Inputs
- WebSocket URL (required) — The URL of the WebSocket server to connect to, must start with ws:// or wss://
- Message — The message to send to the WebSocket server as a string; can be JSON-encoded
- Wait for Response — Boolean indicating whether to wait for the first response message from the server after sending
- Timeout (ms) — Maximum time in milliseconds to wait for connection and response before timing out (default 30000 ms)
Output shape
a single JSON object per input item
Each output object contains the original WebSocket URL, the operation name, an array of message objects with timestamps and types (connection, sent, received, error), total message count, and count of received messages. If 'Wait for Response' is true, the operation resolves upon receiving the first message. Errors during connection, sending, or receiving are captured and either thrown or returned in output if 'Continue On Fail' is enabled.