I try to get the latency value for the current user with this code:
but I get NAN value.
If I remember correctly you don't get a latency value in P2P mode. From
the spec "The amount of latency in milliseconds between the user and the
server." No server no latency Someone else may correct me though.