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.
1 parent 98f04fb commit 5fdde65Copy full SHA for 5fdde65
lib/stomp.js
@@ -399,6 +399,19 @@ Stomp.prototype.ack = function(message_id) {
399
this.log.debug('acknowledged message: ' + message_id);
400
};
401
402
+
403
+//
404
+// ## Stomp.nack(message_id)
405
406
+// **Deny received message**
407
408
+// Takes a string representing the message id to nack
409
410
+Stomp.prototype.nack = function(message_id) {
411
+ send_command(this, 'NACK', {'message-id': message_id});
412
+ this.log.debug('denied message: ' + message_id);
413
+};
414
415
//
416
// ## Stomp.begin()
417
0 commit comments