addConnection

abstract fun addConnection(@NotNull connection: @NotNull UdpServerConnection)

Adds a connection to the connection map. This method calls UdpClientConnectEvent before adding the connection to the map.

Parameters

connection

The UDP server connection to add.