Skip to content

Commit

Permalink
Merge pull request #101 from fourix4/dev
Browse files Browse the repository at this point in the history
test : stomp header test
  • Loading branch information
TaeHoon0 authored Jul 23, 2024
2 parents 435794b + 0284eac commit d44e2c6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public class StompHandler implements ChannelInterceptor {
public Message<?> preSend(Message<?> message, MessageChannel channel) {
StompHeaderAccessor accessor = StompHeaderAccessor.wrap(message);
String accessToken = "";

System.out.println("-------------accessor : " + accessor);
System.out.println("--------accessor header : " + accessor.getNativeHeader("Authorization"));
// 연결 요청에 대해 실행
if(accessor.getCommand() == StompCommand.CONNECT) {
accessToken = accessor.getFirstNativeHeader("Authorization");
Expand Down

0 comments on commit d44e2c6

Please sign in to comment.