-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
WebSockets Next: fire CDI events for each connection added/removed #40217
Comments
So have several options here. First of all, we should decide if we really want to use CDI events or some other kind of API (listener interface, Vertx eventbus, etc.). And if we decide to use CDI events, we would need to (A) introduce a special type for each event; e.g. When I think about it, we could also consider reusing |
Is there a reason why we shouldn't use CDI events? They seem like a natural fit.
+1 to this one as it looks simpler.
Probably both? If there are no OM for given event, it's pretty cheap anyway. |
The only downside I can see is that for "close" events the connection object is basically unusable and most of the operations would result in an exception.
My concern with sync observers is that they block the current thread which might be dangerous because we open/close the connection on the event loop. |
Yes, at that point it is just a marker payload.
Didn't think about that, that's very good point. |
Description
The payload should contain the connection id.
Implementation ideas
No response
The text was updated successfully, but these errors were encountered: