Skip to main content

别名

  • raknet.add_send_hook

参数

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

返回值

function
The same callback function that was passed in.

类型

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.