Skip to content

Commit 52effea

Browse files
authored
Merge pull request #318 from KWcapstone/feat/317-파일-저장-시-웹소켓-연결-끊기
Feat: 파일 저장 시 웹소켓 연결 끊김 알림
2 parents 89ff7a5 + e720143 commit 52effea

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/main/java/com/kwcapstone/Service/ConferenceService.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,11 @@ public void saveProject(PrincipalDetails principalDetails, SaveProjectRequestDto
292292
project.setUpdatedAt(LocalDateTime.now(ZoneId.of("Asia/Seoul")));
293293
projectRepository.save(project);
294294

295+
messagingTemplate.convertAndSend(
296+
"/topic/conference/" + projectId,
297+
"event : save"
298+
);
299+
295300
} catch (IOException e) {
296301
throw new ResponseStatusException(HttpStatus.INTERNAL_SERVER_ERROR, "파일 처리 중 오류 발생");
297302
}

0 commit comments

Comments
 (0)