await Disconnect User
suspend fun ChatRoom.awaitDisconnectUser(request: DisconnectUserRequest): DisconnectUserEvent
Content copied to clipboard
Sends a disconnect user request through a socket connection using suspending function.
Return
DisconnectUserEvent corresponding to the sent request
Parameters
request
identifies the user to be disconnected and also related reason
Throws
when room is not connected
when provided request fails to serialise
when chat room rejects the request