You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The peer.nick value always returns undefined, even though it's present in the Peer object. For instance, I pass a nickname to the Liowebrtc component as shown below:
If I print the peer object to console in handleCreatedPeer, I can see peer has a nick with value "Pippin." However, trying to call peer.nick or peer["nick"] always produces undefined.
For instance,
console.log("Peer id: ", peer.id); // valid value
console.log("Peer nick: ", peer.nick); // undefined
console.log("Peer one: ", peer.oneway); // valid value
even though:
If I call `Object.keys()` on Peer, I get
As you can see, nick is missing, even though it's there when you log the object in its entirety.
The text was updated successfully, but these errors were encountered:
The
peer.nick
value always returns undefined, even though it's present in the Peer object. For instance, I pass a nickname to the Liowebrtc component as shown below:If I print the
peer
object to console inhandleCreatedPeer
, I can see peer has a nick with value "Pippin." However, trying to callpeer.nick
orpeer["nick"]
always produces undefined.For instance,
even though:
As you can see,
nick
is missing, even though it's there when you log the object in its entirety.The text was updated successfully, but these errors were encountered: