DEBUG: 通道信息

This commit is contained in:
2023-10-03 00:37:59 +08:00
parent c0bd382e30
commit 93c2d2fef9
2 changed files with 4 additions and 2 deletions

View File

@ -8,7 +8,7 @@ webrtc 实现的 p2p 信道
- [x] 播放时高亮显示
- [x] 合并操作按钮
- [x] 响应列表时不再广播
- [ ] 对方退出时清除其列表
- [x] 对方退出时清除其列表
- [ ] 分片请求时立即播放
- [ ] 集群分发
- [ ] 下载加速

View File

@ -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)
})
}
// 通过指定通道发送数据(广播)