Open Asterune
NetworkServer

NetworkServer

Reports connected clients and server network statistics.

Service
game:GetService("NetworkServer")
Inherits
Instance
Replication
Never

Behavior

NetworkServer reports connected clients and server network statistics.

Summary

Members8
Properties4
Methods4

Properties

ClientCount

NetworkServer.ClientCount: number = 0

The number of connected clients.

Port

NetworkServer.Port: number = 0

The network port used by the server.

ReceivedBytes

NetworkServer.ReceivedBytes: number = 0

The cumulative number of bytes received.

SentBytes

NetworkServer.SentBytes: number = 0

The cumulative number of bytes sent.

Methods

GetClientCount

NetworkServer:GetClientCount(): number

Returns the number of connected network clients.

GetConnections

NetworkServer:GetConnections(): table

Returns information about the active network connections.

GetExecutionGroup

NetworkServer: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

NetworkServer:GetStats(): table

Returns network traffic and timing statistics.

Inherited members

Inherited47

Instance