Connetti E Ascolta
AI-generatedSummary
Connects to a WebSocket server and waits for the first message or disconnection, then closes the connection.
Inputs
None.
Output shape
returns an array of three element sets: connectionOut, messageOut, disconnectionOut. Each contains a json object and pairedItem. connectionOut: { event: 'connection', connected: true, url: string }. messageOut: { event: 'message', data: any } (parsed as JSON if possible, otherwise { raw: string, body: string }). disconnectionOut: { event: 'disconnection', url: string, reason: 'closed_or_timeout' }.
Connection is closed after the first event. Reconnect attempts with delay are supported when the Reconnect toggle is on. Timeout after connectAndListenTimeout ms defaults to 30s if no message or close occurs.