This commit is contained in:
parent
496e2ec4ef
commit
e66493b733
@ -49,6 +49,14 @@ io.on("connection", (socket) => {
|
||||
console.log("Client connected:", socket.id);
|
||||
|
||||
socket.emit('producers', Array.from(producers.values()).map(producer => {
|
||||
console.log(producer);
|
||||
return {
|
||||
producerId: producer.id,
|
||||
kind: producer.kind,
|
||||
}
|
||||
}))
|
||||
|
||||
console.log(Array.from(producers.values()).map(producer => {
|
||||
return {
|
||||
producerId: producer.id,
|
||||
kind: producer.kind,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user