WebSocket data connector configuration object consists of the following attributes:

AttributeDescription
typeConnector type; must be always set to ws.
idApp wide unique connector id.
serverProvide only the domain part of the URL without scheme.
portService port number.
sslEither true or false. If true wss scheme is used instead of .
pathOptional. Subdirectory part of the URL.
headersOptional Custom HTTP headers. User can add up to 10 headers.
credentialsOptional Basic authentication credentials object. Consists of user and password fields.
dataProcessingMethodOptional. Id or name of the App method that will be used for filtering and/or transforming incoming data. See Overview page for details.
disabledOptional. When true data connector stops streaming.
POST .../v3/apps/:ref/dataconnectors/test

{
  "type": "ws",
  "id": "dc.ws.1",
  "server": "echo.kaazing.com",
  "port": 443,
  "ssl": true,
  "path": "/echo",
  "disabled": false
}
POST .../v3/apps/:ref/dataconnectors

{
  "type": "ws",
  "id": "dc.ws.1",
  "server": "echo.kaazing.com",
  "port": 443,
  "ssl": true,
  "path": "/echo",
  "dataProcessingMethod": "_mtd_695058884056880409",
  "disabled": false
}
PUT .../v3/apps/:ref/dataconnectors/dc.ws.1

{
  "dataProcessingMethod": "processWSData"
}

What’s Next