Skip to main content

Aliases

  • raknet.add_send_hook

Argumentos

(packet: RakNetPacket) -> ()
obrigatório
Function called with each observed outgoing RakNetPacket.

Retornos

function
The same callback function that was passed in.

Tipos

RakNetPacket

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

Exemplo

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