我可以使用 socket.io 连接超过 1 个 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)})
})