-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat #95] 채팅 전송 웹소켓 API #96
Conversation
Code Coverage
|
Test Results20 files 20 suites 14s ⏱️ Results for commit 16b6553. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고 많으셨습니다!
인메모리 브로커, rabbitMQ, 소켓 관련 어노테이션(?)을 찾아보면서 코드를 읽었는데 신기하네요 ㅎㅎ
지난 번에 가현님께서 메시지 손실을 줄이고 싶다고 하셨는데 rabbitMQ || kafka로 수정해서 꼭 목표 달성하길 바랍니다!
memberId 관련해서 링크 걸어주신 블로그 글을 쭉 읽어봤습니다.
ChannelInterceptor 구현을 통해 웹소켓 연결 및 메시지에 대한 인증 처리를 진행하는 코드가 있고, 조금 더 아래(JpaConfig) 웹소켓과 별개로 동작하는 빈이어도 SecurityContextHolder에 Authentication이 저장되어 있으므로 따로 웹소켓을 위한 설정을 안해도 된다는 글이 있네요!
2번째 웹소켓과 별개로 동작하는 빈(SecurityContextHolder에 인증객체 저장)이 현재 저희가 인증 플로우에 쓰고 있는데, 이 방식이 있다면 ChannelInterceptor를 구현하지 않아도 되는건가 헷갈리네요,,
@@ -26,8 +26,6 @@ public class ChatMessage { | |||
|
|||
private Boolean isRead; | |||
|
|||
private String mediaUrl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mediaUrl(사진, 동영상) 값을 content에 넣겠다는 말씀으로 이해했는데 맞을까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵 맞습니다!
감사합니다..!
제가 security에 대해 깊게 공부해본적이 없어서 잘 모르겠어요,,, 일단 |
관련 이슈
📑 작업 상세 내용
securityConfig
를 수정했습니다.💫 작업 요약
🔍 중점적으로 리뷰 할 부분
application.yml
환경별 분리@AuthenticationPrincipal
로 memberId를 받아오면 좋을 것 같아요