Advanced networking
Packet hooks, packet data and network-path helpers.
These packet APIs operate below HTTP and ordinary Roblox signals.
- Register and remove hooks by callback, rather than a returned handle.
- Packet mutation methods matter only while the callback is running.
- Optional packet-ID filters and path availability determine which callbacks see traffic.
Functions
| Function | Purpose |
|---|---|
| raknet.is_enabled | Checks for an installed inbound hook and observed detour activity. |
| raknet.add_receive_hook | Registers a callback for receive packets. |
| raknet.remove_receive_hook | Removes a matching receive packet callback. |
| raknet.add_send_hook | Registers a callback for send packets. |
| raknet.remove_send_hook | Removes a matching send packet callback. |
| raknet.send | Sends packet bytes through the cached live network peer. |
| raknet.receive | Passes packet bytes through the client receive path. |
| raknet.block_inbound | Blocks inbound packets with a selected ID. |
| raknet.unblock_inbound | Unblocks inbound packets with a selected ID. |
| raknet.blocked_inbound | Lists blocked inbound packet IDs. |
| raknet.block_outbound | Blocks outbound packets with a selected ID. |
| raknet.unblock_outbound | Unblocks outbound packets with a selected ID. |
| raknet.blocked_outbound | Lists blocked outbound packet IDs. |
