onMessageRejected

fun onMessageRejected(handler: suspend (JsonObject) -> Unit)

Registers a handler for the message.rejected event.