camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r987794 - in /websites/production/camel/content: cache/main.pageCache websocket.html
Date Mon, 09 May 2016 12:19:15 GMT
Author: buildbot
Date: Mon May  9 12:19:15 2016
New Revision: 987794

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/websocket.html

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/websocket.html
==============================================================================
--- websites/production/camel/content/websocket.html (original)
+++ websites/production/camel/content/websocket.html Mon May  9 12:19:15 2016
@@ -89,7 +89,7 @@
 <div class="wiki-content maincontent"><h2 id="Websocket-WebsocketComponent">Websocket
Component</h2><p><strong>Available as of Camel 2.10</strong></p><p>The
<strong>websocket</strong> component provides websocket <a shape="rect" href="endpoint.html">endpoints</a>
for communicating with clients using websocket. The component uses Eclipse Jetty Server which
implements the <a shape="rect" class="external-link" href="http://tools.ietf.org/html/rfc6455"
rel="nofollow">IETF</a> specification (drafts and RFC 6455). It supports the protocols
ws:// and wss://. To use wss:// protocol, the SSLContextParameters must be defined.</p><div
class="confluence-information-macro confluence-information-macro-information"><p class="title">Version
currently supported</p><span class="aui-icon aui-icon-small aui-iconfont-info confluence-information-macro-icon"></span><div
class="confluence-information-macro-body"><p>As Camel 2.10 uses Jetty 7.5.4.v20111024,
only the D00 to <a shape="rect" class="external-li
 nk" href="http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-13" rel="nofollow">D13</a>
IETF implementations are available.<br clear="none"> Camel 2.11 uses Jetty 7.6.7.</p></div></div><h3
id="Websocket-URIformat">URI format</h3><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[websocket://hostname[:port][/resourceUri][?options]
 ]]></script>
-</div></div><p>You can append query options to the URI in the following
format, <code>?option=value&amp;option=value&amp;...</code></p><h3
id="Websocket-ComponentOptions">Component Options</h3><p>The <code>WebsocketComponent</code>
can be configured prior to use, to setup host, to act as a websocket server.</p><div
class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1"
rowspan="1" class="confluenceTh"><p>Option</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Default</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>host</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>0.0.0.0</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>The hostname.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>port</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>9292</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>The p
 ort number.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>staticResources</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Path for static resources such as
index.html files etc. If this option has been configured, then a server is started on the
given hostname and port, to service the static resources, eg such as an index.html file. If
this option has not been configured, then no server is started.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>sslContextParameters</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Reference to a <code>org.apache.camel.util.jsse.SSLContextParameters</code>
in the <a shape="rect" class="external-link" href="http://camel.apache.org/registry.html">Registry</a>.
This reference overrides any configured SSLContextParameters at the component level.&
 #160; See <a shape="rect" href="camel-configuration-utilities.html">Using the JSSE
Configuration Utility</a>.</p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><code>enableJmx</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>If this option is true, Jetty JMX
support will be enabled for this endpoint. See <a shape="rect" href="#Websocket-JettyJMXsupport">Jetty
JMX support</a> for more details.</p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><code>sslKeyPassword</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Consumer only</strong>:
The password for the keystore when using SSL.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>sslPassword</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code><
 /p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Consumer
only</strong>: The password when using SSL.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>sslKeystore</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Consumer only</strong>:
The path to the keystore.</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>minThreads</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Consumer only</strong>:
To set a value for minimum number of threads in server thread pool. <strong>From Camel
2.18</strong>: MinThreads/MaxThreads or threadPool fields are required due to switch
to Jetty 9</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>maxThreads</code></p></td><td
colspan="1" rowspan="1" class="conf
 luenceTd"><p><code>null</code></p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p><strong>Consumer only</strong>: To
set a value for maximum number of threads in server thread pool. <strong>From Camel
2.18</strong>: MinThreads/MaxThreads or threadPool fields are required due to switch
to Jetty 9</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>threadPool</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Consumer only</strong>:
To use a custom thread pool for the server. <strong>From Camel 2.18</strong>:
MinThreads/MaxThreads or threadPool fields are required due to switch to Jetty 9</p></td></tr></tbody></table></div><h3
id="Websocket-EndpointOptions">Endpoint Options</h3><p>The <code>WebsocketEndpoint</code>
can be configured prior to use</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th
colspan="1" rowspan="1" class="confl
 uenceTh"><p>Option</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Default</p></th><th
colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>sslContextParametersRef</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Deprecated and will
be removed in Camel 3.0:</strong> Reference to a <code>org.apache.camel.util.jsse.SSLContextParameters</code>
in the <a shape="rect" class="external-link" href="http://camel.apache.org/registry.html">Registry</a>.&#160;
This reference overrides any configured SSLContextParameters at the component level. See <a
shape="rect" href="camel-configuration-utilities.html">Using the JSSE Configuration Utility</a>.
Use the <code>sslContextParameters</code> option instead</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>sslContextParameters</p></td><td
colspan="1" rowspan="1
 " class="confluenceTd"><p>&#160;</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p><strong>Camel 2.11.1:</strong> Reference to a
<code>org.apache.camel.util.jsse.SSLContextParameters</code> in the <a shape="rect"
class="external-link" href="http://camel.apache.org/registry.html">Registry</a>.
This reference overrides any configured SSLContextParameters at the component level.&#160;
See <a shape="rect" href="camel-configuration-utilities.html">Using the JSSE Configuration
Utility</a>.</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p>sendToAll</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Producer only:</strong>
To send to all websocket subscribers. Can be used to configure on endpoint level, instead
of having to use the <code>WebsocketConstants.SEND_TO_ALL</code> header on the
message.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>st
 aticResources</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>The root directory for the web resources
or classpath. Use the protocol file: or classpath: depending if you want that the component
loads the resource from file system or classpath.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>&#160;bufferSize</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.12.3:</strong>
set the buffer size of the websocketServlet, which is also the max frame byte size (default
8192)</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>maxIdleTime</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.12.3:</strong>
set the time in ms that the websocket created by the websoc
 ketServlet may be idle before closing. (default is 300000)</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>maxTextMessageSize</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.12.3:</strong>
can be used to set the size in characters that the websocket created by the websocketServlet
may be accept before closing.</p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p>maxBinaryMessageSize</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.12.3:</strong>
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)</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>minVersion</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null
 </code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel
2.12.3:</strong> can be used to set the minimum protocol version accepted for the websocketServlet.
(Default 13 - the RFC6455 version)</p></td></tr></tbody></table></div><p>&#160;</p><h3
id="Websocket-MessageHeaders">Message Headers</h3><p>The websocket component
uses 2 headers to indicate to either send messages back to a single/current client, or to
all clients.</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th
colspan="1" rowspan="1" class="confluenceTh"><p>Key</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>WebsocketConstants.SEND_TO_ALL</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Sends the message to all clients
which are currently connected. You can use the <code>sendToAll</code> option on
the endpoint instead of using this header.</p></td></tr><tr><td
c
 olspan="1" rowspan="1" class="confluenceTd"><p><code>WebsocketConstants.CONNECTION_KEY</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Sends the message to the client with
the given connection key.</p></td></tr></tbody></table></div><h3
id="Websocket-Usage">Usage</h3><p>In this example we let Camel exposes a websocket
server which clients can communicate with. The websocket server uses the default host and
port, which would be <code>0.0.0.0:9292</code>.<br clear="none"> The example
will send back an echo of the input. To send back a message, we need to send the transformed
message to the same endpoint <code>"websocket://echo"</code>. This is needed<br
clear="none"> because by default the messaging is InOnly.</p><div class="code
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><p>You can append query options to the URI in the following
format, <code>?option=value&amp;option=value&amp;...</code></p><h3
id="Websocket-ComponentOptions">Component Options</h3><p>The <code>WebsocketComponent</code>
can be configured prior to use, to setup host, to act as a websocket server.</p><div
class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1"
rowspan="1" class="confluenceTh"><p>Option</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Default</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>host</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>0.0.0.0</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>The hostname.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>port</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>9292</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>The p
 ort number.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>staticResources</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Path for static resources such as
index.html files etc. If this option has been configured, then a server is started on the
given hostname and port, to service the static resources, eg such as an index.html file. If
this option has not been configured, then no server is started.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>sslContextParameters</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Reference to a <code>org.apache.camel.util.jsse.SSLContextParameters</code>
in the <a shape="rect" class="external-link" href="http://camel.apache.org/registry.html">Registry</a>.
This reference overrides any configured SSLContextParameters at the component level.&
 #160; See <a shape="rect" href="camel-configuration-utilities.html">Using the JSSE
Configuration Utility</a>.</p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><code>enableJmx</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>If this option is true, Jetty JMX
support will be enabled for this endpoint. See <a shape="rect" href="#Websocket-JettyJMXsupport">Jetty
JMX support</a> for more details.</p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><code>sslKeyPassword</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Consumer only</strong>:
The password for the keystore when using SSL.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>sslPassword</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code><
 /p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Consumer
only</strong>: The password when using SSL.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>sslKeystore</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Consumer only</strong>:
The path to the keystore.</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>minThreads</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>1</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Consumer only</strong>:
To set a value for minimum number of threads in server thread pool. <strong>From Camel
2.18</strong>: MinThreads/MaxThreads or threadPool fields are required due to switch
to Jetty 9</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>maxThreads</code></p></td><td
colspan="1" rowspan="1" class="conflue
 nceTd"><p><code>1 + noCores * 2<br clear="none"></code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Consumer only</strong>:
To set a value for maximum number of threads in server thread pool. <strong>From Camel
2.18</strong>: MinThreads/MaxThreads or threadPool fields are required due to switch
to Jetty 9</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>threadPool</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Consumer only</strong>:
To use a custom thread pool for the server. <strong>From Camel 2.18</strong>:
MinThreads/MaxThreads or threadPool fields are required due to switch to Jetty 9</p></td></tr></tbody></table></div><h3
id="Websocket-EndpointOptions">Endpoint Options</h3><p>The <code>WebsocketEndpoint</code>
can be configured prior to use</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th
colspan="1"
  rowspan="1" class="confluenceTh"><p>Option</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Default</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>sslContextParametersRef</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Deprecated and will
be removed in Camel 3.0:</strong> Reference to a <code>org.apache.camel.util.jsse.SSLContextParameters</code>
in the <a shape="rect" class="external-link" href="http://camel.apache.org/registry.html">Registry</a>.&#160;
This reference overrides any configured SSLContextParameters at the component level. See <a
shape="rect" href="camel-configuration-utilities.html">Using the JSSE Configuration Utility</a>.
Use the <code>sslContextParameters</code> option instead</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>sslContextParameters</p></td><
 td colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.11.1:</strong>
Reference to a <code>org.apache.camel.util.jsse.SSLContextParameters</code> in
the <a shape="rect" class="external-link" href="http://camel.apache.org/registry.html">Registry</a>.
This reference overrides any configured SSLContextParameters at the component level.&#160;
See <a shape="rect" href="camel-configuration-utilities.html">Using the JSSE Configuration
Utility</a>.</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p>sendToAll</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Producer only:</strong>
To send to all websocket subscribers. Can be used to configure on endpoint level, instead
of having to use the <code>WebsocketConstants.SEND_TO_ALL</code> header on the
message.</p></td></tr><tr><td colspan="1" rowspan="1" c
 lass="confluenceTd"><p>staticResources</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>The root directory for the web resources
or classpath. Use the protocol file: or classpath: depending if you want that the component
loads the resource from file system or classpath.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>&#160;bufferSize</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.12.3:</strong>
set the buffer size of the websocketServlet, which is also the max frame byte size (default
8192)</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>maxIdleTime</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.12.3:</strong>
set the time in ms that the websoc
 ket created by the websocketServlet may be idle before closing. (default is 300000)</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>maxTextMessageSize</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.12.3:</strong>
can be used to set the size in characters that the websocket created by the websocketServlet
may be accept before closing.</p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p>maxBinaryMessageSize</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.12.3:</strong>
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)</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>minVersion</p></td><td
colspan="1" rowspan="1" class="co
 nfluenceTd"><p><code>null</code></p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p><strong>Camel 2.12.3:</strong> can
be used to set the minimum protocol version accepted for the websocketServlet. (Default 13
- the RFC6455 version)</p></td></tr></tbody></table></div><p>&#160;</p><h3
id="Websocket-MessageHeaders">Message Headers</h3><p>The websocket component
uses 2 headers to indicate to either send messages back to a single/current client, or to
all clients.</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th
colspan="1" rowspan="1" class="confluenceTh"><p>Key</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>WebsocketConstants.SEND_TO_ALL</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Sends the message to all clients
which are currently connected. You can use the <code>sendToAll</code> option on
the endpoint instead of using this heade
 r.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>WebsocketConstants.CONNECTION_KEY</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Sends the message to the client with
the given connection key.</p></td></tr></tbody></table></div><h3
id="Websocket-Usage">Usage</h3><p>In this example we let Camel exposes a websocket
server which clients can communicate with. The websocket server uses the default host and
port, which would be <code>0.0.0.0:9292</code>.<br clear="none"> The example
will send back an echo of the input. To send back a message, we need to send the transformed
message to the same endpoint <code>"websocket://echo"</code>. This is needed<br
clear="none"> because by default the messaging is InOnly.</p><div class="code
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 // expose a echo websocket client, that sends back an echo
 from(&quot;websocket://echo&quot;)



Mime
View raw message