Skip to content

Commit 843eefb

Browse files
committed
feat: 참석자 목록 participants 추가
1 parent b570b5c commit 843eefb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

backend/controllers/socket.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ module.exports = (http) => {
5050
console.log('thisRoom', thisRoom);
5151

5252
// 유저 정보 추가
53-
io.sockets.in(roomId).emit('join', roomId, thisRoom);
53+
io.sockets.in(roomId).emit('join', roomId, {
54+
userId,
55+
participants: thisRoom,
56+
});
5457
//console.log('ROOM LIST', io.sockets.adapter.rooms);
5558
console.log('ROOM LIST', rooms);
5659
});

backend/routes/urls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module.exports = [
3535
renderFile: 'examples/screen-share/index.ejs',
3636
},
3737
{
38-
title: '파일 & 데이터 전송하기',
38+
title: '데이터 채널로 파일 전송하기',
3939
url: '/data-channel',
4040
renderFile: 'examples/data-channel/index.ejs',
4141
},

0 commit comments

Comments
 (0)