Skip to content

Commit b4a10e6

Browse files
committed
Doc updates
1 parent 6812b8c commit b4a10e6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/stomp.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ Stomp.prototype.connect = function() {
263263
_connect(this);
264264
};
265265

266-
// ## Stomp.handle\_new_frame()
266+
// ## Stomp.handle\_new_frame(frame)
267267
//
268268
// **Handle frame based on type. Emit events when needed.**
269269
//
@@ -340,7 +340,7 @@ Stomp.prototype.subscribe = function(headers, callback) {
340340
};
341341

342342
//
343-
// ## Stomp.unsubscribe()
343+
// ## Stomp.unsubscribe(headers)
344344
//
345345
// **Unsubscribe from destination (queue or topic)**
346346
//
@@ -355,7 +355,7 @@ Stomp.prototype.unsubscribe = function(headers) {
355355
};
356356

357357
//
358-
// ## Stomp.ack()
358+
// ## Stomp.ack(message_id)
359359
//
360360
// **Acknowledge received message**
361361
//
@@ -381,7 +381,7 @@ Stomp.prototype.begin = function() {
381381
};
382382

383383
//
384-
// ## Stomp.commit()
384+
// ## Stomp.commit(transaction_id)
385385
//
386386
// **Commit transaction**
387387
//
@@ -393,7 +393,7 @@ Stomp.prototype.commit = function(transaction_id) {
393393
};
394394

395395
//
396-
// ## Stomp.abort()
396+
// ## Stomp.abort(transaction_id)
397397
//
398398
// **Abort transaction**
399399
//
@@ -405,13 +405,13 @@ Stomp.prototype.abort = function(transaction_id) {
405405
};
406406

407407
//
408-
// ## Stomp.send()
408+
// ## Stomp.send(headers, want_receipt)
409409
//
410410
// **Send MESSAGE to STOMP broker**
411411
//
412412
// Takes a header object (destination is required)
413413
//
414-
// Takes a boolean requesting recipt of the sent message
414+
// Takes a boolean requesting receipt of the sent message
415415
//
416416
// Returns a `Frame` object representing the message sent
417417
//

0 commit comments

Comments
 (0)