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