NetworkClient
Reports the client's server connection and network statistics.
- Service
game:GetService("NetworkClient")- Inherits
- Instance
- Replication
- Never
Behavior
NetworkClient reports the client's server connection and network statistics.
Summary
Whether the client currently has an active server connection.
The measured connection round-trip time, in milliseconds.
The cumulative number of bytes received.
The cumulative number of bytes sent.
Returns information about the active network connections.
Returns this instance if it is an ExecutionGroup.
Returns network traffic and timing statistics.
Properties
Connected
NetworkClient.Connected: boolean = falseWhether the client currently has an active server connection.
Ping
NetworkClient.Ping: number = 0The measured connection round-trip time, in milliseconds.
ReceivedBytes
NetworkClient.ReceivedBytes: number = 0The cumulative number of bytes received.
SentBytes
NetworkClient.SentBytes: number = 0The cumulative number of bytes sent.
Methods
GetConnections
NetworkClient:GetConnections(): tableReturns information about the active network connections.
GetExecutionGroup
NetworkClient:GetExecutionGroup(): ExecutionGroup?Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.
GetStats
NetworkClient:GetStats(): tableReturns network traffic and timing statistics.
Inherited members
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying