abstract fun disconnect(connection: WireConnection!, reason: DisconnectReason!): Unit
(source)
Sends a message to the peer explaining that we are about to disconnect.
connection
- WireConnection!: the connection to target
reason
- DisconnectReason!: the reason for disconnection