UdpClientManager

Manages the current UDP client.

Functions

Link copied to clipboard
abstract fun getClient(): Optional<UdpClient>
Gets the UdpClient, if available.
Link copied to clipboard
abstract fun isConnected(): Boolean
Checks if the UDP client is present, connected, and not timed out.
Link copied to clipboard
abstract fun removeClient(@NotNull reason: @NotNull UdpClientClosedEvent.Reason)
Disconnects and removes the UDP client from the manager.
Link copied to clipboard
abstract fun setClient(@NotNull client: @NotNull UdpClient)
Sets the UdpClient