How do I check the latency of the connected player?
How do I check the latency of the connected player?
Solution:Jump to solution
----------------------
You can check the latency of the connected player in NormalVR by using the
ping
property of the Realtime
class. This property returns the local client's last known ping with the server in milliseconds.
Here is how you can access it:
...5 Replies
Hi @Chesco. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Solution
----------------------
You can check the latency of the connected player in NormalVR by using the
ping
property of the Realtime
class. This property returns the local client's last known ping with the server in milliseconds.
Here is how you can access it:
This will give you the latency in milliseconds.
For more information, you can refer to the Realtime class documentation (https://normcore.io/documentation/reference/classes/Normal.Realtime.Realtime).
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@584767573556592640> kapa.ai is still learning and improving, please let us know how it did by reacting below
@Chesco if you are connected to a room, you can just access the ping property with
room.ping
Thanks for the follow up, that's some good information. I'll see if I can edit future responses from the bot to include that