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