Packet receive event
packetReceive
Last updated
packetReceive
Last updated
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():
Gives the packet that we received from the server.