Skip to content

Commit

Permalink
[del]:Socket 필요없는 코드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
qogustj committed May 23, 2024
1 parent 6904ffe commit 67ffe3c
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 244 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,49 +27,13 @@ public ChatController(ChatService chatService, SimpMessagingTemplate template,
this.template = template;
this.redisTemplate = redisTemplate;
}
// @MessageMapping("/chat/{sessionId}")
// public void sendChatMessage(@DestinationVariable("sessionId") final String sessionId,
// @RequestBody final ChatMessageRequestDto chatMessageRequestDto) {
// final ChatMessageResponseDto responseDto = chatService.createSendMessageContent(sessionId, chatMessageRequestDto);
// redisTemplate.convertAndSend("meetingRoom", responseDto);
// }

@MessageMapping("/room/{roomName}")
@SendTo("/sub/room/{roomName}")
public MessageSuccessResponse sendChatMessageInRoom(@DestinationVariable("roomName") final String roomName,
@RequestBody final ChatMessageRoomRequestDto chatMessageRoomRequestDto) throws IOException {
return MessageSuccessResponse.of(MessageSuccessCode.RECEIVED, chatService.createSendMessageContentInRoom(roomName, chatMessageRoomRequestDto).getMessage());
}
// @MessageMapping("/room/image/{roomName}")
// @SendTo("/sub/room/{roomName}")
// public MessageSuccessResponse sendImageMessageInRoom(@DestinationVariable("roomName") final String roomName,
// @RequestBody final ChatMessageRoomRequestDto chatMessageRoomRequestDto) throws IOException {
// return MessageSuccessResponse.of(MessageSuccessCode.RECEIVED, chatService.createSendMessageContentInRoom(roomName, chatMessageRoomRequestDto).getMessage());
// }
// @MessageMapping("/room/image/{roomName}")
// @SendTo("/sub/room/{roomName}")
// public MessageSuccessResponse sendImageMessageInRoom(@DestinationVariable("roomName") final String roomName,
// @RequestBody final image image) throws IOException {
// return MessageSuccessResponse.of(MessageSuccessCode.RECEIVED, chatService.createSendImageContentInRoom(roomName, image).getMessage());
// }
// @MessageMapping("/room/{roomName}")
// public void sendChatMessageInRoom(@DestinationVariable("roomName") final String roomName,
// @RequestBody final ChatMessageRoomRequestDto chatMessageRoomRequestDto) {
// final ChatMessageRoomResponseDto responseDto = chatService.createSendMessageContentInRoom(roomName, chatMessageRoomRequestDto);
// redisTemplate.convertAndSend("meetingRoom", responseDto);
// }

// @MessageMapping("/chat/detail/{sessionId}")
// public void sendChatDetailMessage(@DestinationVariable("sessionId") final String sessionId,
// @RequestBody final ChatMessageListRequestDto chatMessageListRequestDto) {
// final ChatMessageListResponseDto responseDto = chatService.sendChatDetailMessage(sessionId, chatMessageListRequestDto);
// template.convertAndSend("/sub/chat/" + sessionId, MessageSuccessResponse.of(MessageSuccessCode.MESSAGE, responseDto));
// }
//
// @MessageMapping("/chat/all")
// public void sendUserChatListMessage(@Header("sessionId") final String sessionId,
// @RequestBody final ChatListRequestDto chatListRequestDto) {
// final ChatListResponseDto responseDto = chatService.sendUserChatListMessage(sessionId, chatListRequestDto);
// template.convertAndSend("/sub/chat/" + sessionId, MessageSuccessResponse.of(MessageSuccessCode.CHATLIST, responseDto));
// }

}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public void sendChatDetailMessage(@DestinationVariable("roomName") final String
final RoomMessageListResponseDto responseDto = roomService.sendRoomDetailMessage(roomName);
template.convertAndSend("/sub/room/" + roomName, MessageSuccessResponse.of(MessageSuccessCode.MESSAGE, responseDto));
}
//
@MessageMapping("/room/all/{sessionId}")
public void sendUserChatListMessage(@DestinationVariable("sessionId") final String sessionId) {
final RoomListResponseDto responseDto = roomService.sendUserChatListMessage(sessionId);
Expand Down
38 changes: 0 additions & 38 deletions socket/src/main/java/Backend/socket/infra/config/FCMConfig.java

This file was deleted.

25 changes: 0 additions & 25 deletions socket/src/main/java/Backend/socket/infra/config/WebConfig.java

This file was deleted.

143 changes: 0 additions & 143 deletions socket/src/main/java/Backend/socket/infra/external/AwsService.java

This file was deleted.

0 comments on commit 67ffe3c

Please sign in to comment.