我可以使用socket.io连接多个RTCpeerconnection吗? 客户:
const pc = new RTCPeerConnection()
socket.emit("peer",pc)
socket.on("peerAnswer",(peer)=>{
pc.addIceCandidate(peer)
})
服务器:
io.on("connection",(socket)=>{
socket.on("peer",(peer)=>{socket.broadcast.emit("peerAnswer",peer)})
})