File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -89,9 +89,13 @@ export class Sender extends Link {
8989
9090 /**
9191 * Sends the message
92- * @param {Message | Buffer } msg The AMQP message to be sent.
93- * @param {Buffer | string } [tag] The optional tag that can be sent
94- * @param {number } [format] The format in which the message needs to be sent.
92+ * @param {Message | Buffer } msg The message to be sent. For default AMQP format msg parameter
93+ * should be of type Message interface. For a custom format, the msg parameter should be a Buffer
94+ * and a valid value should be passed to the `format` argument.
95+ * @param {Buffer | string } [tag] The message tag if any.
96+ * @param {number } [format] The message format. Specify this if a message with custom format needs
97+ * to be sent. `0` implies the standard AMQP 1.0 defined format. If no value is provided, then the
98+ * given message is assumed to be of type Message interface and encoded appropriately.
9599 * @returns {Delivery } Delivery The delivery information about the sent message.
96100 */
97101 send ( msg : Message | Buffer , tag ?: Buffer | string , format ?: number ) : Delivery {
You can’t perform that action at this time.
0 commit comments