Skip to content

Logic questions for automatic re-subscription, automatic reconnection #515

Closed Answered by joffrey-bion
Kova700 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! Thanks a lot for your question, and for your positive feedback too ❤️

You hit the nail right on the head. Technically, withAutoReconnect makes the connection failures invisible to the web socket client caller. Instead, the caller only sees a continuous flow of web socket frames across reconnections. In the STOMP case, the caller of the web socket client is the STOMP layer, which doesn't see web socket failures, and thus doesn't not try to re-subscribe anything.

However, the STOMP server sees the new web socket connections that follow failures. So, from its point of view, it's a new client with no subscriptions. The server will therefore no longer send messages on the old subscriptions.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Kova700
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants