Skip to content

[Feat] SSE 실시간 이벤트 확장 - 질문 등록, 이해도 체크 생성/응답 이벤트 추가 #142

Description

@kkw610

기능 설명

기존에는 댓글 생성 시에만 SSE 이벤트가 발행되고 있었음..

질문 등록, 이해도 체크 생성/응답 시에도 같은 세션 질문방을 보고 있는
모든 클라이언트에게 실시간으로 이벤트를 전파하도록 백엔드를 확장

작업 상세 내용

  • QuestionResDTO에 이벤트 전용 record 3개 추가
  • QuestionEventService에 이벤트 발행 메서드 3개 추가 및 공통 broadcast() 메서드로 리팩토링
  • QuestionService의 createQuestion(), createUnderstandingCheck(), respondUnderstandingCheck()에 이벤트 발행 연결
  • application.yml에 Tomcat 스레드 설정 추가

발행 이벤트 목록

이벤트 이름 발행 시점
comment-created 댓글/대댓글 등록 시 (기존)
question-created 질문 등록 시
understanding-check-created 이해도 체크 생성 시
understanding-response-updated 이해도 O/X 응답 시

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions