You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Emilien (JIRA)" <ji...@apache.org> on 2015/06/11 17:50:01 UTC

[jira] [Commented] (CAMEL-8861) Add a factory to support custom websocket sub-protocol

    [ https://issues.apache.org/jira/browse/CAMEL-8861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14582131#comment-14582131 ] 

Emilien commented on CAMEL-8861:
--------------------------------

And also an exemple of the corresponding camel context configuration :

<util:map id="websocketFactoryMap">
	<entry key="default">
		<bean class="org.apache.camel.component.websocket.DefaultWebsocketFactory" />
	</entry>
	<entry key="myProtocol">
		<bean id="mySocketFactory" class="exemple.myprotocol.MySocketFactory"/>
	</entry>
</util:map>
   
<bean id="websocket" class="org.apache.camel.component.websocket.WebsocketComponent">
	<property name="socketFactory" ref="websocketFactoryMap"/>
</bean>

> Add a factory to support custom websocket sub-protocol
> ------------------------------------------------------
>
>                 Key: CAMEL-8861
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8861
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-websocket
>    Affects Versions: 2.16.0
>            Reporter: Emilien
>         Attachments: camel.patch
>
>
> Websocket support sub-protocol definition (see https://tools.ietf.org/html/rfc6455#section-1.9). However, there is no way to provide your own websocket implementation to handle your own subprotocol. Adding a configurable websocket factory to the component could enable this functionnality.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)