awaitDisconnectUser

suspend fun ChatRoom.awaitDisconnectUser(request: DisconnectUserRequest): DisconnectUserEvent

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