1
0
Fork 0
mirror of https://api.glitch.com/git/yaswvc synced 2026-01-12 05:08:11 +00:00

🐕🍗 Checkpoint

./public/main.js:5975361/250
This commit is contained in:
Glitch (peerjs-video) 2020-09-12 22:01:25 +00:00
parent 7051447050
commit 0756b8f05a

View file

@ -216,8 +216,10 @@ var app = new Vue({
// target.addTrack(track); // target.addTrack(track);
// }); // });
const callPeerId = call.peer; const callPeerId = call.peer;
call.close(); console.log('CONNECTIONS', this.connections)
const conns = this.connections.filter(c => c.peer === call.peer);
conns.forEach(c => c.close())
this.connectToPeer(callPeerId);
}); });
} }
this.stream = stream; // make stream available to console this.stream = stream; // make stream available to console