moveToDeadLetter method

  1. @override
Future moveToDeadLetter(
  1. MessageEnvelope message
)

Permanently removes a message from the queue and sends it to dead letter queue.

Important: This method is not supported by MQTT.

  • message a message to be removed. Returns (optional) Future that receives an null for success. Throws error

Implementation

@override
Future moveToDeadLetter(MessageEnvelope message) async {
  // Not supported
  return null;
}