Returns a table of counters and state for the transport. Useful for checking that packets are actually flowing and which transport is in use.
RakNet is off by default. The library exists only when the RakNet feature is enabled in the Athena loader, and it is published on getgenv() rather than as a plain global. Guard your code with if getgenv().raknet then ... end, or read raknet.is_enabled.

Returns

table
A table with the fields below.

Behavior

  • transport tells you which stack is live. Roblox has moved between its own transport and RakNet, so this reports what was actually found.
  • Counters are cumulative for the session and are reset by clear.

Example

  • packets: the packets behind these counters.
  • clear: reset them.