awaitDeleteMessage

suspend fun ChatRoom.awaitDeleteMessage(request: DeleteMessageRequest): DeleteMessageEvent

Sends a delete message request through a socket connection using suspending function.

Return

DeleteMessageEvent corresponding to the sent request

Parameters

request

identifies message to be deleted and also related reason

Throws

when room is not connected

when provided request fails to serialise

when chat room rejects the request