Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19692

camel-vertx-websocket: Improve producer sendToAll handling of parameterized server paths

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.0.0
    • camel-vertx-websocket
    • None
    • Unknown

    Description

      While working on a vertx-websocket demo app, I stumbled across some behavior of the producer 'sendToAll' option that I think should be improved, where parameterized or wildcarded paths are used.

      If you have a route like:

      from("vertx-websocket:localhost:8080/orders/{country}")
          .log("Got order for: ${headers.country});
      

      Then clients connect on paths like:

      • /orders/us
      • /orders/uk

      Right now there's currently no way for the producer to 'sendToAll' on any of those specific paths. I think it should be possible to 'sendToAll' to a specific parameterized path, or if desired, all peers connected on any match for /orders/{country}.

      Attachments

        Issue Links

          Activity

            People

              jamesnetherton James Netherton
              jamesnetherton James Netherton
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: