Skip to content
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

Merged
merged 9 commits into from
Nov 23, 2024

Conversation

kelly6bf
Copy link
Contributor

연관된 이슈

구현한 기능

  • 기존 SSE 로직을 Web Socket으로 변경

상세 설명

  • 아직 테스트가 부족해 테스트 서버에만 배포해 기능 연결 확인 후 개선하겠습니다.


public class EmptyQueryException extends WebSocketException {

public EmptyQueryException(String message) {
Copy link
Contributor

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
Copy link
Member

@reddevilmidzy reddevilmidzy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고 많으셨습니다!
사소한 코멘트랑 질문 남겼어요

Comment on lines +5 to +6
public record EventAndDataMessage(String event, String data) implements WebSocketMessage {
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WebSocketMessage 를 인터페이스로 두고 이 EventAndDataMessage를 레코드로 설계하신 이유가 궁금합니다!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WebSocketMessage는 타이머, 레퍼런스 링크, 투두 에서 사용될 예정입니다.
현재 타이머엔 event와 data 만 필요하지만 도메인이나 상황에 따라 다양한 필드를 가진 WebSocketMessage들이 필요할 수 있어� 추상화 했습니다.

Copy link
Member

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=";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요오기 final ... !

@kelly6bf kelly6bf merged commit c5ad88b into BE/dev Nov 23, 2024
6 checks passed
@kelly6bf kelly6bf deleted the BE/feature/#961 branch November 23, 2024 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants