subscribeSendMessageFailed method

void subscribeSendMessageFailed(
  1. dynamic callback(
    1. Message,
    2. Exception
    )
)

Subscribes to all messages which couldn't be sent correctly (SendMessageFailed-Event).

The first passed Message is the original message and the second one is the exception during the sending process.

Implementation

void subscribeSendMessageFailed(Function(Message, Exception) callback) {
  _callbacksSendMessageFailed.add(callback);
}