Sent as the server receives a network packet from a client. If cancelled, the server will not parse the network packet and will silently ignore it.

Properties

cancel: boolean
packetId: PacketId

The type of network packet.

packetSize: number

The size of the network packet in bytes.

sender?: Player

Which client sent the network packet to the game server.