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

completion

the completion callback