getCurrentEndpoint

@Nullable
open fun getCurrentEndpoint(): @Nullable InetSocketAddress

Returns the current endpoint this client is connected to.

Return

The current endpoint or null if no connection is available.