close

abstract fun close(error: MessagingError?)(source)

Tells the replicator to close the current replicator connection. In return, the replicator will call the MessageEndpointConnection's close(error, completion) to acknowledge the closed connection.

Parameters

error

the error if any