Skip to main content

エイリアス

  • raknet.OnPacketSend.Connect

引数

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

戻り値

RakNetSignalConnection
Connection object with Disconnect and Connected.

型

RakNetPacket

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

RakNetSignalConnection

Connection object returned by RakNet.OnPacketSend.Connect and RakNet.OnPacketReceive.Connect.

例

Use the signal-style API to observe outgoing packets and disconnect the returned connection.