Add user to DISCONNECT in StompSubProtocolHandler

Issue: SPR-12215
This commit is contained in:
Rossen Stoyanchev
2014-09-18 15:06:08 -04:00
parent b1e9577680
commit 4af9851585
2 changed files with 6 additions and 8 deletions

View File

@@ -469,6 +469,7 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE
}
headerAccessor.setSessionId(session.getId());
headerAccessor.setSessionAttributes(session.getAttributes());
headerAccessor.setUser(session.getPrincipal());
return MessageBuilder.createMessage(EMPTY_PAYLOAD, headerAccessor.getMessageHeaders());
}