RTPacket
An object representing a packet sent by a client
getData
signature getData()
returns RTData Gets the RTData sent with the packet (if available)getSender
signature getSender()
returns RTPlayer Gets the player who sent the packetgetTargetPlayers
signature getTargetPlayers()
returns number[] Gets the list of peerIds that this packet is being sent to. If this is empty the packet is targetting everyone except the sender