spring-framework / org.springframework.messaging.simp.user / UserDestinationResult / getUser

getUser

@Nullable open fun getUser(): String

The user for this user destination.

Return
the user name or null if we have a session id only such as when the user is not authenticated; in such cases it is possible to use sessionId in place of a user name thus removing the need for a user-to-session lookup via SimpUserRegistry.