Skip to main content

Aliases

  • raknet.add_send_hook

Arguments

(packet: RakNetPacket) -> ()
required
Function called with each observed outgoing RakNetPacket.

Returns

function
The same callback function that was passed in.

Types

RakNetPacket

Live packet object passed to RakNet hooks and packet signal callbacks. It is only valid during the callback that receives it.

ตัวอย่าง

Observe outgoing packets with a callback and remove the same callback later.