tuweni / org.apache.tuweni.rlpx / RLPxService / disconnect

disconnect

abstract fun disconnect(connection: WireConnection!, reason: DisconnectReason!): Unit (source)

Sends a message to the peer explaining that we are about to disconnect.

Parameters

connection - WireConnection!: the connection to target

reason - DisconnectReason!: the reason for disconnection