close

abstract fun close(error: Exception?, completion: MessagingCloseCompletion)(source)

Called to close the remote connection with the other peer when the replicator stops or when the MessageEndpointListener closes the connection. When the remote connection is closed, call the completion block to acknowledge the completion.

Parameters

error

null on success or an exception describing the failure

completion

the completion callback