Skip to content

Commit

Permalink
Merge pull request #109 from catchroom/develop
Browse files Browse the repository at this point in the history
style : StompHandler log ์ถ”๊ฐ€
  • Loading branch information
sungjiwoon authored Feb 2, 2024
2 parents d995274 + 9ca642d commit a58e91b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public Message<?> preSend(Message<?> message, MessageChannel channel) {
StompHeaderAccessor accessor = StompHeaderAccessor.wrap(message);
if (StompCommand.SUBSCRIBE == accessor.getCommand()) { // ์ฑ„ํŒ…๋ฃธ ๊ตฌ๋…์š”์ฒญ

String sessionId = (String) message.getHeaders().get("simpSessionId");
log.info("Websocket CONNECT simpSessionId : {}", sessionId);

/** ์ผ๋‹จ ์ฝ”๋“œ ๋‚˜์ค‘์— ์“ฐ์ผ ์ˆ˜ ์žˆ์œผ๋‹ˆ ์ „๋ถ€ ์ฃผ์„์ฒ˜๋ฆฌ ํ•จ */

// header ์ •๋ณด์—์„œ ๊ตฌ๋… destination ์ •๋ณด๋ฅผ ์–ป๊ณ , roomId๋ฅผ ์ถ”์ถœํ•œ๋‹ค. destination = uri
Expand All @@ -33,8 +36,6 @@ public Message<?> preSend(Message<?> message, MessageChannel channel) {
// );

// ์ฑ„ํŒ…๋ฐฉ์— ๋“ค์–ด์˜จ ํด๋ผ์ด์–ธํŠธ sessionId๋ฅผ roomId์™€ ๋งตํ•‘ํ•ด ๋†“๋Š”๋‹ค.(๋‚˜์ค‘์— ํŠน์ • ์„ธ์…˜์ด ์–ด๋–ค ์ฑ„ํŒ…๋ฐฉ์— ๋“ค์–ด๊ฐ€ ์žˆ๋Š”์ง€ ์•Œ๊ธฐ ์œ„ํ•จ)
// String sessionId = (String) message.getHeaders().get("simpSessionId");
// log.info("simpSessionId : {}", sessionId);
// chatRoomRepository.setUserEnterInfo(sessionId, roomId);
//
// // ์ฑ„ํŒ…๋ฐฉ์˜ ์ธ์›์ˆ˜๋ฅผ +1ํ•œ๋‹ค.
Expand Down

0 comments on commit a58e91b

Please sign in to comment.