sendPacket

open fun sendPacket(@NotNull packet: @NotNull Packet<out Any>)

Sends a packet to the server with UDP connection check.

Parameters

packet

The packet to send.


abstract fun sendPacket(@NotNull packet: @NotNull Packet<out Any>, checkUdpConnection: Boolean)

Sends a packet to the server.

Parameters

packet

The packet to send.

checkUdpConnection

Whether to check the UDP connection before sending.