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 })) }))