DEBUG: 通道信息
This commit is contained in:
		@@ -8,7 +8,7 @@ webrtc 实现的 p2p 信道
 | 
				
			|||||||
  - [x] 播放时高亮显示
 | 
					  - [x] 播放时高亮显示
 | 
				
			||||||
  - [x] 合并操作按钮
 | 
					  - [x] 合并操作按钮
 | 
				
			||||||
  - [x] 响应列表时不再广播
 | 
					  - [x] 响应列表时不再广播
 | 
				
			||||||
  - [ ] 对方退出时清除其列表
 | 
					  - [x] 对方退出时清除其列表
 | 
				
			||||||
  - [ ] 分片请求时立即播放
 | 
					  - [ ] 分片请求时立即播放
 | 
				
			||||||
- [ ] 集群分发
 | 
					- [ ] 集群分发
 | 
				
			||||||
- [ ] 下载加速
 | 
					- [ ] 下载加速
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -167,7 +167,9 @@ export default class ClientList {
 | 
				
			|||||||
            while (ch.readyState !== 'open') {
 | 
					            while (ch.readyState !== 'open') {
 | 
				
			||||||
                await new Promise(resolve => setTimeout(resolve, 100))
 | 
					                await new Promise(resolve => setTimeout(resolve, 100))
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            ch.send(data)
 | 
					            console.log(ch.label, '通道已经打开, 开始发送数据')
 | 
				
			||||||
 | 
					            const rest = ch.send(data)
 | 
				
			||||||
 | 
					            console.log(ch.label, '通道发送已结束', rest)
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    // 通过指定通道发送数据(广播)
 | 
					    // 通过指定通道发送数据(广播)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user