ChescoC
Normal2y ago
6 replies
Chesco

How do I check the latency of the connected player?

How do I check the latency of the connected player?
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:

float latency = Realtime.ping;


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:
----------------------
Was this page helpful?