I'm using Spring 4.2 websockets with stomp on the serverside. Client uses stomp.js. I noticed that it is possible for a user to subscribe the same topic-destination multiple times. When a message is delivered to this destination, the user receives it multiple times too.
- Why is this possible? What would be a use case for this?
- How can I avoid it? The @SubscribeMapping is called AFTER the subscription and I cannot cancel it.