Clears the captured packet buffer, the counters, and the set of blocked packet ids.
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.

Behavior

  • Listeners and hooks survive. clear resets captured state, not your registrations; remove those with disconnect or the remove_*_hook functions.
  • Blocks are dropped, so anything you blocked starts flowing again.

Example