From 3a315787dcbeac6115ffef98e555cee3a1ce7184 Mon Sep 17 00:00:00 2001 From: dev-taewon-kim Date: Tue, 19 Nov 2024 19:00:25 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=8B=9C=EA=B7=B8=EB=84=90=EB=A7=81=20?= =?UTF-8?q?=EC=84=9C=EB=B2=84=EC=97=90=EC=84=9C=20=EC=82=AC=EC=9A=A9?= =?UTF-8?q?=EC=9E=90=EC=9D=98=20=EB=8B=89=EB=84=A4=EC=9E=84=20=EB=A6=AC?= =?UTF-8?q?=ED=84=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- be/signalingServer/src/services/room.service.js | 1 + be/signalingServer/src/services/socket.service.js | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/be/signalingServer/src/services/room.service.js b/be/signalingServer/src/services/room.service.js index d5f9b92..65de2e6 100644 --- a/be/signalingServer/src/services/room.service.js +++ b/be/signalingServer/src/services/room.service.js @@ -19,6 +19,7 @@ class RoomService { * sdp: RTCSessionDescription, * candidates: RTCIceCandidate[], * deviceId: string, // 오디오 장치 ID + * playerNickname: string, // 닉네임 * timestamp: number // 마지막 업데이트 시간 * } */ diff --git a/be/signalingServer/src/services/socket.service.js b/be/signalingServer/src/services/socket.service.js index 74cf728..bcb49e3 100644 --- a/be/signalingServer/src/services/socket.service.js +++ b/be/signalingServer/src/services/socket.service.js @@ -15,8 +15,8 @@ class SocketService { // 방 참가 요청 처리 socket.on("join_room", (data) => { - const { roomId, sdp, candidates, deviceId } = data; - console.log(`[SocketService] 사용자 ${socket.id}가 방 ${roomId} 참가 요청`); + const { roomId, sdp, candidates, deviceId, playerNickname } = data; + console.log(`[SocketService] 사용자 ${socket.id}(닉네임 ${playerNickname})가 방 ${roomId} 참가 요청`); // 방에 사용자 추가 socket.join(roomId); @@ -24,6 +24,7 @@ class SocketService { sdp, candidates, deviceId, + playerNickname, }); // 방의 모든 사용자에게 업데이트된 정보 전송