In Spring Boot (Websockets)
I just saw this example:
messaging.convertAndSendToUser( username, "/queue/notifications",
new Notification("You just got mentioned!"));
Where does the guy get a username from? I can't find any mention about where to get that username...