Description
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>
Attachments
Issue Links
- duplicates
-
KNOX-776 Rewrite rule handling for Websockets
- Closed