Hi, i have a vaadin 14 spring app. For logging in i am using spring security. I am trying to push notifications to users guided by your demo for WebSocket based char app at Devox Belgium. Is it possible to pass which users are subscribed to different notifications?
I don’t think there’s any good way of finding all subscribers to a specific Flux. You would probably have to wrap the callbacks for subscribing and unsubscribing so that they also update your own bookkeeping in addition to interacting with the Flux.
Keep in mind that you need to implement that bookkeeping in a thread-safe way so that things won’t explode if two users start subscribing or unsubscribe at the same time from separate request threads.