code is as follows. Anchor is a map structure. If you get an element in anchor according to id, there is no problem printing anchor.get (id), but getting attributes in anchor.get (id) is empty, which makes me do not understand
. function sendLiveOffer(id) {
console.log(id)
console.log(anchor.get(id))
console.log(anchor.get(id).localDescription)
let sdp = anchor.get(id).localDescription
let offer = {
name: "anchor",
target: id,
type: "video-offer",
sdp: sdp
}
console.log("offer ")
}