AcediaDocumentation

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

FunctionPurpose
raknet.is_enabledChecks for an installed inbound hook and observed detour activity.
raknet.add_receive_hookRegisters a callback for receive packets.
raknet.remove_receive_hookRemoves a matching receive packet callback.
raknet.add_send_hookRegisters a callback for send packets.
raknet.remove_send_hookRemoves a matching send packet callback.
raknet.sendSends packet bytes through the cached live network peer.
raknet.receivePasses packet bytes through the client receive path.
raknet.block_inboundBlocks inbound packets with a selected ID.
raknet.unblock_inboundUnblocks inbound packets with a selected ID.
raknet.blocked_inboundLists blocked inbound packet IDs.
raknet.block_outboundBlocks outbound packets with a selected ID.
raknet.unblock_outboundUnblocks outbound packets with a selected ID.
raknet.blocked_outboundLists blocked outbound packet IDs.

On this page