onError

public abstract void onError(Message message, RongIMClient.ErrorCode errorCode)

Message sending failed.

Parameters

message

The message body that failed to send.

errorCode

The specific error code indicating the failure.