camel-websocket-source-kafka-connector source configuration
Connector Description: Websocket endpoints for communicating with clients
When using camel-websocket-source-kafka-connector as source make sure to use the following Maven dependency to have support for the connector:
<dependency>
<groupId>org.apache.camel.kafkaconnector</groupId>
<artifactId>camel-websocket-source-kafka-connector</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel Kafka connector version -->
</dependency>
To use this source connector in Kafka connect you’ll need to set the following connector.class
connector.class=org.apache.camel.kafkaconnector.websocketsource.CamelWebsocketsourceSourceConnector
The camel-websocket-source source connector supports 15 options, which are listed below.
Name | Description | Default | Priority |
---|---|---|---|
The hostname. |
"0.0.0.0" |
MEDIUM |
|
The port number. |
9292 |
MEDIUM |
|
Required The name of the websocket channel to use. |
HIGH |
||
Can be used to set the size in bytes that the websocket created by the websocketServlet may be accept before closing. (Default is -1 - or unlimited). |
-1 |
MEDIUM |
|
Allows for bridging the consumer to the Camel routing Error Handler. |
false |
MEDIUM |
|
Whether to enable session support which enables HttpSession for each http request. |
false |
MEDIUM |
|
Comma-separated list of subprotocols that are supported by the application. |
"any" |
MEDIUM |
|
Whether the producer should be started lazy (on the first message). |
false |
MEDIUM |
|
Timeout in millis when sending to a websocket channel. The default timeout is 30000 (30 seconds). |
30000 |
MEDIUM |
|
Set the buffer size of the websocketServlet. |
8192 |
MEDIUM |
|
SetSet the time in ms that the websocket created by the websocketServlet may be idle before closing. |
300000 |
MEDIUM |
|
The CORS allowed origins. Use to allow all. |
"" |
MEDIUM |
|
Whether to enable CORS. |
false |
MEDIUM |
|
Context path for filtering CORS. |
"" |
MEDIUM |
|
Enable JMX support. |
false |
MEDIUM |
The camel-websocket-source source connector has no converters out of the box.
The camel-websocket-source source connector has no transforms out of the box.
The camel-websocket-source source connector has no aggregation strategies out of the box.