-
Notifications
You must be signed in to change notification settings - Fork 3
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
[BE] SSE 기반 타이머 잔여 시간 조회 기능을 Web Socket 기반으로 변경 #966
Conversation
|
||
public class EmptyQueryException extends WebSocketException { | ||
|
||
public EmptyQueryException(String message) { |
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.
예외 클래스들에 final
…961 # Conflicts: # backend/src/test/java/site/coduo/websocket/QueryAccessCodeParserTest.java
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.
수고 많으셨습니다!
사소한 코멘트랑 질문 남겼어요
public record EventAndDataMessage(String event, String data) implements WebSocketMessage { | ||
} |
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.
WebSocketMessage 를 인터페이스로 두고 이 EventAndDataMessage를 레코드로 설계하신 이유가 궁금합니다!
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.
WebSocketMessage는 타이머, 레퍼런스 링크, 투두 에서 사용될 예정입니다.
현재 타이머엔 event와 data 만 필요하지만 도메인이나 상황에 따라 다양한 필드를 가진 WebSocketMessage들이 필요할 수 있어� 추상화 했습니다.
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.
아하 인터페이스를 레코드로 구현하는게 신기(?)해서 남긴 질문이였어요
지금 인터페이스는 뭔가 데이터 모음을 한번에 처리하기 위한 그런 역할이군요
@DisplayName("accesscode가 비어있으면 예외가 발생한다.") | ||
@Test | ||
void throwExceptionWhenAccessCodeIsEmpty() { | ||
String query = "user=ink&accesscode="; |
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.
요오기 final ... !
68f5f52
to
ada435c
Compare
연관된 이슈
구현한 기능
상세 설명