Skip to content

Commit 973af86

Browse files
committed
fix : 코드 공유 위치 변경
1 parent c49b7fe commit 973af86

File tree

2 files changed

+29
-15
lines changed

2 files changed

+29
-15
lines changed

src/main/java/oncoding/concoder/controller/CodeController.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@
1414
public class CodeController {
1515
private final SimpMessagingTemplate template;
1616

17-
/**
18-
* 코드를 해당 룸 사용자들에게 공유
19-
* @param roomId
20-
* @param ob
21-
*/
22-
@MessageMapping("/code/{roomId}")
23-
private void codeShare(@DestinationVariable final String roomId,JSONObject ob) {
24-
25-
template.convertAndSend("/sub/code/"+roomId,ob);
26-
27-
log.info("convertAndSend to /sub/code/"+roomId+" : ",ob);
28-
29-
}
17+
// /**
18+
// * 코드를 해당 룸 사용자들에게 공유
19+
// * @param roomId
20+
// * @param ob
21+
// */
22+
// @MessageMapping("/code/{roomId}")
23+
// private void codeShare(@DestinationVariable final String roomId,JSONObject ob) {
24+
//
25+
// template.convertAndSend("/sub/code/"+roomId,ob);
26+
//
27+
// log.info("convertAndSend to /sub/code/"+roomId+" : ",ob);
28+
//
29+
// }
3030

3131
}

src/main/java/oncoding/concoder/controller/VideoRoomController.java

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,20 @@ public void chat(@DestinationVariable final String roomId, JSONObject ob) {
5454
log.info("after chatting convert and send");
5555
}
5656

57+
/**
58+
* 코드를 해당 룸 사용자들에게 공유
59+
* @param roomId
60+
* @param ob
61+
*/
62+
@MessageMapping("/code/{roomId}")
63+
private void codeShare(@DestinationVariable final String roomId,JSONObject ob) {
64+
65+
template.convertAndSend("/sub/code/"+roomId,ob);
66+
67+
log.info("convertAndSend to /sub/code/"+roomId+" : "+ ob);
68+
69+
}
70+
5771

5872

5973

@@ -130,7 +144,7 @@ private void caller(@DestinationVariable final String roomId,JSONObject ob) {
130144

131145
template.convertAndSend("/sub/video/caller-info/"+roomId,ob);
132146

133-
log.info("convertAndSend to /sub/video/caller-info/"+roomId+" : ",ob);
147+
log.info("convertAndSend to /sub/video/caller-info/"+roomId+" : " + ob);
134148

135149
}
136150

@@ -139,7 +153,7 @@ private void caller(@DestinationVariable final String roomId,JSONObject ob) {
139153
private void answerCall(@DestinationVariable final String roomId,JSONObject ob) {
140154

141155
template.convertAndSend("/sub/video/callee-info/"+roomId,ob);
142-
log.info("convertAndSend to /sub/video/callee-info/"+roomId+" : ",ob);
156+
log.info("convertAndSend to /sub/video/callee-info/"+roomId+" : "+ ob);
143157

144158
}
145159

0 commit comments

Comments
 (0)