-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
WebSockets Next client: make it possible to customize the WebSocketConnectOptions and WebSocketClientOptions #46244
Comments
Should this work similarly to how Vert.x HTTP Server options are customized https://github.com/quarkusio/quarkus/blob/main/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/HttpServerOptionsCustomizer.java ? Do I simply expose interface, allow users to create a CDI bean implementing it and then make sure that some configuration like uri / host etc. is overwritten by Quarkus WS Next extension @mkouba ? I am interested :-) |
Hm, I was originally thinking about setting a customizer directly on a
👍 |
It would be good to be able to customize per connection if there or at least per client endpoint. I need to have a look how would it look like and get back to you. |
For client endpoints it should be straightforward to filter by |
@mkouba I had a look and I don't see why it wouldn't be possible to apply customizer beans depending on |
It's definitely possible. My point is that we could add something like |
The
it seems easy as well. Or maybe you have further suggestions how to deal with server endpoint connections? |
But you don't need anything for the server endpoint, or am I missing something? |
Alright, so WebSocket client has options while server endpoint parameters are already configurable by |
Ok, I'm glad we're on the same page now 😉 . |
Yes, I also encountered the need to customize |
Description
It might be useful to be able to customize the
WebSocketConnectOptions
andWebSocketClientOptions
. There are options that should be always overriden by theWebSocketConnector
API (uri, host, etc.) but others could be set directly.Implementation ideas
No response
The text was updated successfully, but these errors were encountered: