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
@SubscribeMapping semantics #28
Comments
Both destinations are for messages to a specific user/session. The difference is that with On the other hand, |
Thanks for your clarification. From what I'm understanding, given the user has two tabs open and the client sends a message to the server from tab 1, it is impossible to send a message to a specific client connection (tab 1). Using the Is there something fundamentally wrong in trying to reply to a specific user web session? Is Ajax the preferred in this case? |
Indeed currently an When using However, when using |
JIRA issue opened - https://jira.springsource.org/browse/SPR-11506. I posted an initial fix, and posted it as a comment on JIRA. We can continue the discussion over there. |
Okay thanks for that and I've set the fix version so I'm closing this ticket here. |
In the example, when a client subscribes to
/app/positions
thePortfolioController#getPositions
method is invoked and the user on a specific session receives a list of positions.After this invocation is the destination
/app/positions
of any use?My understanding is that the
@SubscribeMapping
annotation should be used in situations when a reply to a user with a specific session is essential. After this initial reply is sent to the client, the client should then subscribe to a user queue (/user/queue/position-updates
) in order to receive further updates (not session specific).Is this understanding correct? Is there any other way how to provide the push/reply a message to user on a particular session semantics other than the one I just described?
The text was updated successfully, but these errors were encountered: