Skip to content
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

Subscribe to topic only when a condition is met #2363

Open
aozaversa opened this issue Feb 21, 2019 · 0 comments
Open

Subscribe to topic only when a condition is met #2363

aozaversa opened this issue Feb 21, 2019 · 0 comments

Comments

@aozaversa
Copy link

I am trying to implement websockets using jersey. I have a method subscribe in my AtmosphereServlet which returns SuspendResponse.SuspendResponseBuilder().addListener().build().

I want to subscribe to the topic only when a certain condition is met. Where do I write this condition. How do I reject the handshake. If I should write it in my subscribe method, how do I implement it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant