krak3n
krak3n20h ago

Metrics from multiple networked users

Hi all, trying to see the over connection metrics (ping, packet loss, litter, basically as much as possible) from all the users connected - what is the easiest way to do this, and is there a way to achieve this without heavy editing of the source application? Thanks!
3 Replies
kapa.ai
kapa.ai20h ago
Hi @krak3n. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- To get network metrics for multiple connected users in Normcore, you can use the NetworkInfo class and the GetNetworkStatistics() method provided by the Normcore API. Here's how you can approach this: 1. For each connected client, you can use the Room class to get network statistics:
NetworkInfo networkInfo = room.GetNetworkStatistics();
NetworkInfo networkInfo = room.GetNetworkStatistics();
2. The NetworkInfo class provides various network metrics, including: - roundTripTime (ping) - percentOfPacketsLost (packet loss) - sentBandwidth - receivedBandwidth - numberOfPacketsSent - numberOfPacketsReceived You can access these metrics as properties of the NetworkInfo object. Reference > Classes > NetworkInfo provides details on the available metrics. To get this information for all connected users, you'll need to implement a way to collect and share this data across the network. One approach could be: 1. Create a custom component that periodically collects network stats for the local client. 2. Use Normcore's RPC system to share this data with other clients. 3. Have each client maintain a list of network stats for all connected users. While this approach doesn't require heavy editing of the source application, it does require some implementation work. Unfortunately, the knowledge sources don't provide a pre-built solution for collecting metrics from all users simultaneously. It's worth noting that Normcore uses WebRTC, which implements congestion control. As mentioned in the Architecture > Transport documentation, this helps optimize bandwidth usage and improve user experience, especially for those with poor connections. For more detailed implementation guidance or alternative approaches, you might want to check the Normcore documentation or reach out to their support channels, as the provided knowledge sources don't contain more specific information on this topic. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai20h ago
<@153179716163993600> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
maxweisel
maxweisel18h ago
This is wrong. The main thing we expose right now is ping. jitter stats are coming in a few months.

Did you find this page helpful?