From 93c2d2fef94a484eede5456e39a137c35098dffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Tue, 3 Oct 2023 00:37:59 +0800 Subject: [PATCH] =?UTF-8?q?DEBUG:=20=E9=80=9A=E9=81=93=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- public/client.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4a02e45..a5ed4b9 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ webrtc 实现的 p2p 信道 - [x] 播放时高亮显示 - [x] 合并操作按钮 - [x] 响应列表时不再广播 - - [ ] 对方退出时清除其列表 + - [x] 对方退出时清除其列表 - [ ] 分片请求时立即播放 - [ ] 集群分发 - [ ] 下载加速 diff --git a/public/client.js b/public/client.js index b499055..ed4bc8f 100644 --- a/public/client.js +++ b/public/client.js @@ -167,7 +167,9 @@ export default class ClientList { while (ch.readyState !== 'open') { await new Promise(resolve => setTimeout(resolve, 100)) } - ch.send(data) + console.log(ch.label, '通道已经打开, 开始发送数据') + const rest = ch.send(data) + console.log(ch.label, '通道发送已结束', rest) }) } // 通过指定通道发送数据(广播)