Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions src/main/java/com/kwcapstone/Service/WebSocketService.java
Original file line number Diff line number Diff line change
Expand Up @@ -560,23 +560,6 @@ public void updateNode(NodeRequstDto nodeRequstDto){
throw new ResponseStatusException(HttpStatus.INTERNAL_SERVER_ERROR, "업데이트 노드 저장 중 오류가 발생하였습니다." + e);
}


// String fileContent = null;
// try {
// fileContent = Files.readString(file.toPath(), StandardCharsets.UTF_8);
// } catch (IOException e) {
// throw new ResponseStatusException(HttpStatus.INTERNAL_SERVER_ERROR, "변경사항 반영된 노드 스크립트를 읽어오는데 오류가 발생했습니다." + e);
// }
//
// // 4. List<NodeDto>로 변환
// List<NodeDto> newNodes;
// try {
// ObjectMapper mapper = new ObjectMapper();
// newNodes = mapper.readValue(nodesJson, new TypeReference<List<NodeDto>>() {});
// } catch (IOException e) {
// throw new ResponseStatusException(HttpStatus.INTERNAL_SERVER_ERROR, "노드 역직렬화 실패", e);
// }

messagingTemplate.convertAndSend("/topic/conference/"+ projectId,
new NodeUpdateResponseDto("live_on_node", projectId, newNodes));
}
Expand Down