We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 602284a + 5fdde65 commit 613b897Copy full SHA for 613b897
lib/stomp.js
@@ -401,6 +401,19 @@ Stomp.prototype.ack = function(message_id) {
401
this.log.debug('acknowledged message: ' + message_id);
402
};
403
404
+
405
+//
406
+// ## Stomp.nack(message_id)
407
408
+// **Deny received message**
409
410
+// Takes a string representing the message id to nack
411
412
+Stomp.prototype.nack = function(message_id) {
413
+ send_command(this, 'NACK', {'message-id': message_id});
414
+ this.log.debug('denied message: ' + message_id);
415
+};
416
417
//
418
// ## Stomp.begin()
419
0 commit comments