'About the life cycle of the stomp session

i'm developing using Spring stomp chatting application.

I created a chat room, and user A and user B had /queue/chat/{roomId} subscribe.

What I'm curious about is if a reuses the session if it loses connection during communication and then communicates again.

If not, I will create a new session and subscribe to /roomId. If that happens, it seems to create a session whenever the connection is disconnected and reconnected.

Or, I wonder if it will be automatically released from management when the session is over.

I hope my opinion is wrong, and if it is wrong, I want someone to teach me the correct answer.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source