disconnect

fun disconnect()

Initiates a graceful disconnection of ChatRoom. Results in ChatRoomListener.onDisconnected event being called as well as DisconnectReason being set to DisconnectReason.CLIENT_DISCONNECT.