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 packet

getTargetPlayers

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

Did this page help you? Please enter your feedback below. For questions about using this part of the platform, please contact support here