From 380878667b18ad4b9713c12be4fc354392d805ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Tue, 3 Oct 2023 00:05:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=93=8D=E5=BA=94=E5=88=97=E8=A1=A8=E6=97=B6?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E5=B9=BF=E6=92=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ public/index.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 401e1d6..cdab87f 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,11 @@ webrtc 实现的 p2p 信道 - [x] 播放时高亮显示 - [x] 合并操作按钮 - [ ] 对方退出时清除其列表 + - [x] 响应列表时不再广播 - [ ] 集群分发 - [ ] 下载加速 - [ ] 即时通讯 +- [ ] 稳定通信 - 能获取所有在线设备列表 - 随机连接至四个设备, 且按效率扩展收缩 diff --git a/public/index.html b/public/index.html index 3501934..4caf67f 100644 --- a/public/index.html +++ b/public/index.html @@ -153,7 +153,7 @@ if (type === 'get_music_list') { const ms = musicList.list.filter(item => item.arrayBuffer) console.log(client.name, '请求音乐列表:', ms) - clientList.send('base', JSON.stringify({ + clientList.sendto(client.id, 'base', JSON.stringify({ type: 'set_music_list', list: ms.map(({ id, name, size, type }) => ({ id, name, size, type })) }))