WebSocket Client
The WebSocket Client destination writes data to a WebSocket endpoint. Use the destination to send data to a WebSocket resource URL. For information about supported versions, see Supported Systems and Versions.
The WebSocket Client destination opens a connection to the WebSocket endpoint for each batch of data that it writes. The destination sends each record to the WebSocket resource URL. When the batch is fully written, the destination closes the connection and then opens another connection for the next batch of data.
When you configure the WebSocket Client destination, you define the resource URL and headers to use for the requests. You can also configure SSL/TLS properties, including default transport protocols and cipher suites.
Data Formats
The WebSocket Client destination writes data to WebSocket endpoints based on the data format that you select.
The WebSocket Client destination processes data formats as follows:
- Binary
- The stage writes binary data to a single field in the record.
- JSON
- The destination writes records as JSON data. You can use one of
the following formats:
- Array - Each file includes a single array. In the array, each element is a JSON representation of each record.
- Multiple objects - Each file includes multiple JSON objects. Each object is a JSON representation of a record.
- SDC Record
- The destination writes records in the SDC Record data format.
- Text
- The destination writes data from a single text field to the destination system. When you configure the stage, you select the field to use.
Configuring a WebSocket Client Destination
Configure a WebSocket Client destination to write data to a WebSocket endpoint.