nack method

void nack({
  1. required String id,
  2. Map<String, String>? headers,
})

Implementation

void nack({required String id, Map<String, String>? headers}) {
  final handler = _handler;
  if (handler == null) {
    throw StompBadStateException(
      'The StompHandler was null. '
      'Did you forget calling activate() on the client?',
    );
  }

  handler.nack(id: id, headers: headers);
}