ReferenceRakNet

raknet.diagnostics

Returns a snapshot of packet-library status and counters.

Syntax

raknet.diagnostics() -> table

Also available as

raknet.stats

Returns

TypeDescription
tableCurrent availability, queue and traffic diagnostics.

Description

The table includes availability and traffic counters such as held, passed and blocked packets, along with refusal information when support is unavailable. It does not contain a history of packet bodies. Counters describe the current instance and can change immediately after this snapshot.

Example

local status = raknet.diagnostics()
for key, value in status do
    print(key, value)
end

These are Game executor contracts. Check build requirements and session lifetimes before using them.