-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebSocket automatic reflection registration #31972
Comments
If you want I can make a pull request, |
Hi, Do you have some sample application that fails in native mode as is? |
@geoand Ummmn it's quite hard to extract a sample application but I just created a web socket like this :
And the only way I have to make it work is to have this reflection-config.json :
I believe this should work out of the box. Anyway you seem surprised, is this supposed to work already ? |
Okay, then yeah, I think it makes sense. Feel free to contribute this fix :) |
I'll work on it in the next days ! |
Thanks. yeah it should be straightfoward. |
This works correctly now in CR1 ! |
🎉 |
Description
Hi guys !
I think that quarkus should automatically register for reflections classes to serialize or deserialize in websockets.
This should be similar to what it's done for REST endpoints.
What do you think ?
Implementation ideas
I think this could be done inside a BuildStep, scanning jandex index, looking for implementations of jakarta.websocket.Decoder or jakarta.websocket.Encoder and producing ReflectiveHierarchyBuildItem accordingly.
The text was updated successfully, but these errors were encountered: