You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Jesus Alvarez (JIRA)" <ji...@apache.org> on 2017/10/03 22:42:00 UTC

[jira] [Commented] (KNOX-894) support websocket endpoint rewrite

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

Jesus Alvarez commented on KNOX-894:
------------------------------------

Hi Zhou, is this still an issue? The websocket rewrite rules in KNOX-776 should cover this issue as well

> support websocket endpoint rewrite
> ----------------------------------
>
>                 Key: KNOX-894
>                 URL: https://issues.apache.org/jira/browse/KNOX-894
>             Project: Apache Knox
>          Issue Type: Improvement
>          Components: Server, Site
>    Affects Versions: 0.11.0
>            Reporter: Zhou Li
>
> As knox websocket consumer, we have one webapp provide the SQL execution service. We use websocket to provider better experience which will notify customer whenever there is notification.
>   We have the websocket backend ws://localhost:11080/message-service/messages. we add some extra path and query to provider different service. For example:
> ws://localhost:11080/message-service/messages/subscribe?name=XXXX 
> provide message channel subscribe service
> ws://localhost:11080/message-service/messages/topic?name=XXXX
> provide message channel for specific features
> ws://localhost:11080/message-service/messages/unsubscribe?name=XXXX
> provide message channel for unsubscribe service
> I want to define the rewrite.xml as something like 
> <rules>
>   <rule dir="IN" name="WSSERVICE/ws/inbound" pattern="*://*:*/**/message-service/messages/**?{**}">
>     <rewrite template="{$serviceUrl[WSSERVICE]}/**?{**}"/>
>   </rule>
> </rules>
> and configure service like 
> <service>
>         <role>WSSERVICE</role>
>         <url>ws://localhost:8000/message-service/messages</url>
> </service>



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)