SendToUser(vararg value: String, destinations: Array<String>, broadcast: Boolean)
Annotation that indicates that the return value of a message-handling method should be sent as a org.springframework.messaging.Message to the specified destination(s) prepended with "/user/{username}" where the user name is extracted from the headers of the input message being handled.
The annotation may also be placed at class-level in which case all methods in the class where the annotation applies will inherit it.
Author
Rossen Stoyanchev
Author
Sam Brannen
Since
4.0
See Also
org.springframework.messaging.simp.annotation.support.SendToMethodReturnValueHandlerorg.springframework.messaging.simp.user.UserDestinationMessageHandlerorg.springframework.messaging.simp.SimpMessageHeaderAccessor#getUser()