Claus Ibsen created CAMEL-27484:
-----------------------------------

             Summary: camel-vertx-websocket - a consumeAsClient consumer can 
send a message after it connects and reconnects (connectMessage)
                 Key: CAMEL-27484
                 URL: https://issues.apache.org/jira/browse/CAMEL-27484
             Project: Camel
          Issue Type: Improvement
          Components: camel-vertx-websocket
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 4.24.0


Many WebSocket feeds only start pushing after the client sends a subscribe 
request, e.g. {{\{"op":"subscribe","channel":"..."\}}}. Today a consumeAsClient 
consumer cannot send anything, so the websocket-source Kamelet only works with 
servers that push without being asked.

Add an option, {{connectMessage}} (text), that the client consumer sends after 
each successful connect, including each reconnect.

Test: a server that only pushes after it receives the subscribe text, and a 
reconnect case where the subscribe is sent again.

Found while writing apache/camel-kamelets#3378 (xpath-filter-action) and #3379 
(websocket-source/-sink).

_Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to