Some kind of client Only flag on endpoints of components supporting ws clients would be nice. Short term I can continue using ahc-websockets.
ons. 30. mar. 2022, 17:07 skrev Romain Manni-Bucau <rmannibu...@gmail.com>: > Hi, > > AFAIK it is not that possible as of today but using JSR356 (used under the > hood in > https://camel.apache.org/components/3.15.x/websocket-jsr356-component.html > ) > you can achieve that setting the ws session in the route as property (or > alike) so can be faster and more reliable to extend the existing component > or write your own right now. > > Romain Manni-Bucau > @rmannibucau <https://twitter.com/rmannibucau> | Blog > <https://rmannibucau.metawerx.net/> | Old Blog > <http://rmannibucau.wordpress.com> | Github < > https://github.com/rmannibucau> | > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book > < > https://www.packtpub.com/application-development/java-ee-8-high-performance > > > > > Le mer. 30 mars 2022 à 16:52, Knut-Håvard Aksnes <khaks...@gmail.com> a > écrit : > > > A quick note I am using the WS connections bidirectionaly so I need both > > producers and a consumer on the same client connection. This works with > AHC > > websockets but I haven't found any of the other WS components documenting > > how to do this. Some might do so but it is not documented in component > > documentation. I also suspect that some will automatically start a server > > when a local address is used which makes integration testing hard. In > > production client and server will live in different networks, during > > development and partially during testing they will live on the same > > machine. > > > > > > ons. 30. mar. 2022, 16:23 skrev Knut-Håvard Aksnes <khaks...@gmail.com>: > > > > > I need a web socket library working as a client library for a project I > > am > > > working on currently. When using Camel 3.15 I did use AHC websocket for > > > this, due to its depreciation in 3.16 I am trying to use Vertx > websockets > > > instead as it is documented to work both as server and as client > > library. I > > > need it to work as a pure client but can't find any documentation on > how > > to > > > do this. It is important that the component I am using doesn't try to > > start > > > a server even when being given a local address as this will create > > problems > > > for integration tesdifficult > > > > > >