Skip to content

Commit

Permalink
Merge pull request #138 from KAKAO-TOUR-API-CONTEST/devyj
Browse files Browse the repository at this point in the history
fix : sse data
  • Loading branch information
yyujin1231 authored Oct 11, 2024
2 parents 5f507f5 + 6aea591 commit 48b8d09
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ public SseEmitter subscribeToRoom(@PathVariable("roomId") Long roomId, @RequestP
HttpServletResponse response = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getResponse();
if (response != null) {
response.setHeader("X-Accel-Buffering", "no");
response.setContentType("text/event-stream;charset=UTF-8");
}

return notificationService.subscribeToRoom(userId);
Expand Down

0 comments on commit 48b8d09

Please sign in to comment.