Skip to content
Network internalsOverview

raknet.clearpacketlog

Clears packet-log records.

Details#

Clears the module's current packet-log entries and returns no values. It does not clear bitstream objects or unregister callbacks; cleared diagnostic records are no longer available through getpacketlog.

Examples#

Example

Luau
print("Before:", #raknet.getpacketlog())
raknet.clearpacketlog()
print("After:", #raknet.getpacketlog())