Packet receive event

packetReceive

This event gets called every time the client receives a new packet from the server. The event's ID is packetReceive.

cancel(): void

Cancelling this event will prevent the client from handling this packet. Cancelling these packets can often cause desync and is only recommend for if you know what you are doing.

getPacket(): ServerPacket

Gives the packet that we received from the server.

Last updated