console.debug("disconnected from signaling server");
});
- socket.on("addPeer", ({ peerId }) => {
+ socket.on("addPeer", ({ peerId, shouldCreateOffer }) => {
addPeer({
peerId,
+ shouldCreateOffer,
mediaStream,
onOffer: (data) => socket.emit("relayOffer", data),
socket