The raknet library exposes the client’s low-level network transport. With it you can watch raw packets in both directions, block packet types, rewrite outgoing payloads before they leave, and send packets of your own. This is a layer below remotes. A FireServer call eventually becomes bytes on this transport, so what you see here is the wire format, not Luau values.
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.

Access

Two ways to watch

There are two separate mechanisms, and the difference matters.

Listeners

on_send and on_receive are passive observers. They receive a plain record table and cannot change or stop the packet. Remove them with disconnect.

Hooks

add_send_hook and add_receive_hook receive a packet object with SetData and Block, so they can rewrite or drop the packet. Remove them by passing the same function back.

Functions

The packet record

packets, on_send and on_receive deal in records: plain tables with lowercase fields.

The packet object

Hooks instead receive an object with PascalCase members, because it can act on the packet as well as describe it.

Example

Log outgoing packet ids, and drop one type entirely: