close

abstract fun close(@NotNull reason: @NotNull UdpClientClosedEvent.Reason)

Closes the UDP client with the specified reason.

Parameters

reason

The reason for closing the UDP client.