GetNetworkStats

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
GetNetworkStats

Type: Function
Context: Server & Client
Introduced: v1.0

Description

Gets the clients' NetworkStats

Syntax

GetNetworkStats()

Parameters

  • This function has no parameters.

Return Value

  • packetlossTotal, packetlossLastSecond, messagesInResendBuffer, bytesInResendBuffer, bytesSend, bytesReceived, bytesResent, bytesSendTotal, bytesReceivedTotal, bytesResentTotal, isLimitedByCongestionControl, isLimitedByOutgoingBandwidthLimit

Example

for name, value in pairs(GetNetworkStats())
  print(name .. " -> " .. value)
do

See also