Skip to main content

Alias

  • raknet.OnPacketSend.Connect

Argumen

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

Return

RakNetSignalConnection
Connection object with Disconnect and Connected.

Tipe

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.

Contoh

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