{"id":15817146,"url":"https://github.com/numminorihsf/bramqp-wrapper","last_synced_at":"2025-03-14T21:33:04.755Z","repository":{"id":3074663,"uuid":"48361897","full_name":"NumminorihSF/bramqp-wrapper","owner":"NumminorihSF","description":"Wrapper for bramqp lib for some sinple syntax","archived":false,"fork":false,"pushed_at":"2022-04-28T00:37:49.000Z","size":68,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-06T05:22:25.916Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NumminorihSF.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-21T09:07:39.000Z","updated_at":"2019-02-20T13:15:28.000Z","dependencies_parsed_at":"2022-08-07T03:00:04.389Z","dependency_job_id":null,"html_url":"https://github.com/NumminorihSF/bramqp-wrapper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NumminorihSF%2Fbramqp-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NumminorihSF%2Fbramqp-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NumminorihSF%2Fbramqp-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NumminorihSF%2Fbramqp-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NumminorihSF","download_url":"https://codeload.github.com/NumminorihSF/bramqp-wrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221513267,"owners_count":16835642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-05T05:22:28.722Z","updated_at":"2024-10-26T08:21:07.081Z","avatar_url":"https://github.com/NumminorihSF.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"bramqp-wrapper\n===========================\n\nWrapper of bramqp lib to make easy access to amqp protocol.\n\n**ES2015 syntax in npm repo is not used now.**\n\nInstall with:\n\n    npm install bramqp-wrapper\n\nDependencies:\n\n    bramqp\n \n*Be careful!* not implemented usage of noWait flag.\n\n[Changelog](https://github.com/NumminorihSF/bramqp-wrapper/blob/master/changelog.md)\n\n# Usage\n\nExample:\n\n```js\n\n    var a = new (require('bramqp-wrapper'))({\n        host: '127.0.0.1',\n        port: 5672,\n        vhost: '/',\n        user: 'guest',\n        password: 'guest',\n        protocolVersion: 'rabbitmq/full/amqp0-9-1.stripped.extended',\n        channelPoolCapacity: 100,\n        taskPoolCapacity: 100\n      });\n    \n      a.connect(function (err) {\n        console.log('connected', err);\n    \n        var body = (function(size){\n          var res = '';\n          var s = 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890';\n          while (res.length \u003c size){\n            res += s[Math.floor(Math.random()*s.length)];\n          }\n          return res;\n        })(1024);\n        var start = new Date();\n        var endCount = 100000;\n          for (let i = endCount-1; i \u003e -1; i--) {\n            (function (i) {\n              a.getChannel(function (err, b, done) {\n                  b.basic.publish('', 'queue', body, {}, {}, () =\u003e {\n                    done();\n                    if (i === 0) {\n                      let time = new Date() - start;\n                      console.log('End in', time, 'ms.');\n                      console.log(endCount*1000/time, 'rps.');\n                      setTimeout(a.disconnect.bind(a, function(){\n                        console.log('disconnected');\n                      }), 100);\n                    }\n                  });\n              });\n            })(i);\n          }\n      });\n        \n```\n\nIn this example you will try to add 100k messages and you will use only 100 channels wor it.\n\n## Client\n**Kind**: global class  \n\n* [Client](#Client)\n    * [new Client(config)](#new_Client_new)\n    * [.connect(callback)](#Client+connect)\n    * [.disconnect(cb)](#Client+disconnect)\n    * [.getChannel(callback)](#Client+getChannel)\n    * [.getChannelOnConnect(callback)](#Client+getChannel)\n\n\u003ca name=\"new_Client_new\"\u003e\u003c/a\u003e\n### new Client(config)\n\n| Param | Type | Default |\n| --- | --- | --- |\n| config | \u003ccode\u003eObject\u003c/code\u003e |  | \n| [config.host] | \u003ccode\u003eString\u003c/code\u003e | \u003ccode\u003e\u0026#x27;127.0.0.1\u0026#x27;\u003c/code\u003e | \n| [config.port] | \u003ccode\u003eNumber\u003c/code\u003e | \u003ccode\u003e5672\u003c/code\u003e | \n| [config.user] | \u003ccode\u003eString\u003c/code\u003e | \u003ccode\u003e\u0026#x27;guest\u0026#x27;\u003c/code\u003e | \n| [config.password] | \u003ccode\u003eString\u003c/code\u003e | \u003ccode\u003e\u0026#x27;guest\u0026#x27;\u003c/code\u003e | \n| [config.protocolVersion] | \u003ccode\u003eString\u003c/code\u003e | \u003ccode\u003e\u0026#x27;rabbitmq/full/amqp0-9-1.stripped.extended\u0026#x27;\u003c/code\u003e | \n| [config.vhost] | \u003ccode\u003eString\u003c/code\u003e | \u003ccode\u003e\u0026#x27;/\u0026#x27;\u003c/code\u003e | \n| [config.channelPoolCapacity] | \u003ccode\u003eNumber\u003c/code\u003e | \u003ccode\u003e0\u003c/code\u003e | \n| [config.taskPoolCapacity] | \u003ccode\u003eNumber\u003c/code\u003e | \u003ccode\u003e0\u003c/code\u003e | \n\n\u003ca name=\"Client+connect\"\u003e\u003c/a\u003e\n### client.connect(callback)\nConnect to amqp server.\n\n**Kind**: instance method of \u003ccode\u003e[Client](#Client)\u003c/code\u003e  \n\n| Param | Type |\n| --- | --- |\n| callback | \u003ccode\u003efunction\u003c/code\u003e | \n\n\u003ca name=\"Client+disconnect\"\u003e\u003c/a\u003e\n### client.disconnect(cb)\nWait of end of all tasks. After - disconnect.\n\n**Kind**: instance method of \u003ccode\u003e[Client](#Client)\u003c/code\u003e  \n\n| Param | Type |\n| --- | --- |\n| cb | \u003ccode\u003efunction\u003c/code\u003e | \n\n\n\u003ca name=\"Client+getChannel\"\u003e\u003c/a\u003e\n### client.getChannel(callback)\nGets channel from pool. If no channels, will wait until some chan free.\n\n**Kind**: instance method of \u003ccode\u003e[Client](#Client)\u003c/code\u003e  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| callback | \u003ccode\u003efunction\u003c/code\u003e | 1st arguments is error. 2nd argument is object like    `{basic:.., channel:.., confirm:.., exchange:.., queue:.., queue:.., tx:..}`    all methods provided an api of amqp protocol.    3rd argument is done callback to make channel free. |\n\n\u003ca name=\"Client+getChannel\"\u003e\u003c/a\u003e\n### client.getChannelOnConnect(callback)\nGets channel from pool. If no channels, will wait until some chan free. If client is disconnected, will wait until connect.\n\n**Kind**: instance method of \u003ccode\u003e[Client](#Client)\u003c/code\u003e  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| callback | \u003ccode\u003efunction\u003c/code\u003e | 1st arguments is error. 2nd argument is object like    `{basic:.., channel:.., confirm:.., exchange:.., queue:.., queue:.., tx:..}`    all methods provided an api of amqp protocol.    3rd argument is done callback to make channel free. |\n\n\u003ca name=\"Client+getChannelDirect\"\u003e\u003c/a\u003e\n### client.getChannelDirect(callback)\nGets channel from pool. If no channels, will return error. Mark channel busy, but dos not increment counter of tasks in work.\n\n**Kind**: instance method of \u003ccode\u003e[Client](#Client)\u003c/code\u003e  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| callback | \u003ccode\u003efunction\u003c/code\u003e | 1st arguments is error. 2nd argument is object like    `{basic:.., channel:.., confirm:.., exchange:.., queue:.., queue:.., tx:..}`    all methods provided an api of amqp protocol.    3rd argument is done callback to make channel free. |\n\n\n### Client events\n\n#### \"connect\"\n\nClient object emits this event after opening socket and success authorisation on AMQP server. \n\n#### \"disconnect\"\n\nClient object emits this event then socket is closed. It does not mean, that, you should create new connection manually.\nBy default, client will reconnect after 5 seconds. To prevent this behaviour, just call \n```js\nclient.disconnect(() =\u003e {\n  //and now, if you want, spawn:\n  client.connect(()=\u003e{}); \n});\n``` \n\n#### \"amqp-blocked\"\n\nClient object emits this event then AMQP server start rejecting messages, because it has no memory to get message. \n\n#### \"amqp-unblocked\"\n\nClient object emits this event then AMQP server start resieving messages after amqp-bocked.\n\n\n## Classes\n\n\u003cdl\u003e\n\u003cdt\u003e\u003ca href=\"#Basic\"\u003eBasic\u003c/a\u003e ⇐ \u003ccode\u003eEventEmitter\u003c/code\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003cp\u003eBasic\u003c/p\u003e\n\u003c/dd\u003e\n\u003cdt\u003e\u003ca href=\"#Channel\"\u003eChannel\u003c/a\u003e ⇐ \u003ccode\u003eEventEmitter\u003c/code\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003cp\u003eChannel\u003c/p\u003e\n\u003c/dd\u003e\n\u003cdt\u003e\u003ca href=\"#Confirm\"\u003eConfirm\u003c/a\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003c/dd\u003e\n\u003cdt\u003e\u003ca href=\"#Exchange\"\u003eExchange\u003c/a\u003e ⇐ \u003ccode\u003eEventEmitter\u003c/code\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003c/dd\u003e\n\u003cdt\u003e\u003ca href=\"#Queue\"\u003eQueue\u003c/a\u003e ⇐ \u003ccode\u003eEventEmitter\u003c/code\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003c/dd\u003e\n\u003cdt\u003e\u003ca href=\"#RabbitClientError\"\u003eRabbitClientError\u003c/a\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003c/dd\u003e\n\u003cdt\u003e\u003ca href=\"#RabbitRouteError\"\u003eRabbitRouteError\u003c/a\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003c/dd\u003e\n\u003cdt\u003e\u003ca href=\"#TX\"\u003eTX\u003c/a\u003e ⇐ \u003ccode\u003eEventEmitter\u003c/code\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003c/dd\u003e\n\u003c/dl\u003e\n\n\u003ca name=\"Basic\"\u003e\u003c/a\u003e\n## Basic ⇐ \u003ccode\u003eEventEmitter\u003c/code\u003e\nBasic\n\n**Kind**: global class  \n**Extends:** \u003ccode\u003eEventEmitter\u003c/code\u003e  \n\n* [Basic](#Basic) ⇐ \u003ccode\u003eEventEmitter\u003c/code\u003e\n    * [new Basic(client, channel, done)](#new_Basic_new)\n    * [.qos([options], callback)](#Basic+qos)\n    * [.consume(queueName, [options], subscriber, callback)](#Basic+consume)\n    * [.cancel(consumerTag, [options], callback)](#Basic+cancel)\n    * [.publish(exchange, routingKey, body, [options], [headers], [callback])](#Basic+publish)\n    * [.return(replyCode, replyText, exchange, routingKey, callback)](#Basic+return)\n    * [.get(queue, [options], callback)](#Basic+get)\n    * [.ack(deliveryTag, [options], callback)](#Basic+ack)\n    * [.reject(deliveryTag, [options], callback)](#Basic+reject)\n    * [.recoverAsync([options], callback)](#Basic+recoverAsync)\n    * [.recover([options], callback)](#Basic+recover)\n    * [.nack(deliveryTag, [options], callback)](#Basic+nack)\n\n\u003ca name=\"new_Basic_new\"\u003e\u003c/a\u003e\n### new Basic(client, channel, done)\nWork with basic content.\n\nThe Basic class provides methods that support an industry-standard messaging model. Work with channels.\n\n\n| Param | Type | Description |\n| --- | --- | --- |\n| client | \u003ccode\u003eBRAMQPClient\u003c/code\u003e | Client object that returns from bramqp#openAMQPCommunication() method. |\n| channel | \u003ccode\u003e[Channel](#Channel)\u003c/code\u003e | Channel object (should be opened). |\n| done | \u003ccode\u003efunction\u003c/code\u003e |  |\n\n\u003ca name=\"Basic+qos\"\u003e\u003c/a\u003e\n### basic.qos([options], callback)\nSpecify quality of service.\n\nThis method requests a specific quality of service.\nThe QoS can be specified for the current channel or for all channels on the connection. T\nhe particular properties and semantics of a qos method always depend on the content\nclass semantics. Though the qos method could in principle apply to both peers,\nit is currently meaningful only for the server.\n\n**Kind**: instance method of \u003ccode\u003e[Basic](#Basic)\u003c/code\u003e  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| [options] | \u003ccode\u003eObject\u003c/code\u003e |  |  |\n| [options.prefetchSize] | \u003ccode\u003eNumber\u003c/code\u003e | \u003ccode\u003e0\u003c/code\u003e | The client can request that messages be sent    in advance so that when the client finishes processing a message,    the following message is already held locally,    rather than needing to be sent down the channel.    Prefetching gives a performance improvement.    This field specifies the prefetch window size in octets.    The server will send a message in advance if it is equal to or smaller in size    than the available prefetch size (and also falls into other prefetch limits).    May be set to zero, meaning \"no specific limit\",    although other prefetch limits may still apply.    The prefetch-size is ignored if the no-ack option is set. |\n| [options.prefetchCount] | \u003ccode\u003eNumber\u003c/code\u003e | \u003ccode\u003e10\u003c/code\u003e | Specifies a prefetch window in terms of whole messages.    This field may be used in combination with the prefetch-size field;    a message will only be sent in advance if both prefetch windows    (and those at the channel and connection level) allow it.    The prefetch-count is ignored if the no-ack option is set. |\n| [options.global] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | RabbitMQ has reinterpreted this field.    The original specification said: \"By default the QoS settings apply to the current    channel only. If this field is set, they are applied to the entire connection.\"    Instead, RabbitMQ takes global=false to mean that the QoS settings should apply    per-consumer (for new consumers on the channel; existing ones being unaffected)    and global=true to mean that the QoS settings should apply per-channel. |\n| callback | \u003ccode\u003efunction\u003c/code\u003e |  |  |\n\n\u003ca name=\"Basic+consume\"\u003e\u003c/a\u003e\n### basic.consume(queueName, [options], subscriber, callback)\nStart a queue consumer.\n\nThis method asks the server to start a \"consumer\", which is a transient request for\nmessages from a specific queue. Consumers last as long as the channel they were declared on,\nor until the client cancels them.\n\n**Kind**: instance method of \u003ccode\u003e[Basic](#Basic)\u003c/code\u003e  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| queueName | \u003ccode\u003eString\u003c/code\u003e |  | Specifies the name of the queue to consume from. |\n| [options] | \u003ccode\u003eObject\u003c/code\u003e |  |  |\n| [options.consumerTag] | \u003ccode\u003eString\u003c/code\u003e \u0026#124; \u003ccode\u003enull\u003c/code\u003e | \u003ccode\u003e\u003c/code\u003e | Specifies the identifier for the consumer.    The consumer tag is local to a channel, so two clients can use the same consumer tags.    If this field is empty the server will generate a unique tag.    The client MUST NOT specify a tag that refers to an existing consumer.    Error code: not-allowed    The consumer tag is valid only within the channel from which the consumer was created.    I.e. a client MUST NOT create a consumer in one channel and then use it in another.    Error code: not-allowed |\n| [options.noLocal] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If the no-local field is set the server will not    send messages to the connection that published them. |\n| [options.noAck] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If this field is set the server does not expect    acknowledgements for messages. That is, when a message is delivered to the client    the server assumes the delivery will succeed and immediately dequeues it.    This functionality may increase performance but at the cost of reliability.    Messages can get lost if a client dies before they are delivered to the application. |\n| [options.exclusive] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | Request exclusive consumer access,    meaning only this consumer can access the queue.    * The client MAY NOT gain exclusive access to a queue that already has active consumers.    Error code: access-refused |\n| [options.noWait] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If set, the server will not respond to the method.    The client should not wait for a reply method.    If the server could not complete the method it will raise a channel or    connection exception. |\n| [options.arguments] | \u003ccode\u003eObject\u003c/code\u003e | \u003ccode\u003e{}\u003c/code\u003e | A set of arguments for the consume.    The syntax and semantics of these arguments depends on the server implementation. |\n| subscriber | \u003ccode\u003efunction\u003c/code\u003e |  | All messages will put to this function. 1st argument is content of message.    2nd arg is headers of messages.    3rd arg is arguments of message.    4th arg is options of message. |\n| callback | \u003ccode\u003efunction\u003c/code\u003e |  | This function will be spawned after subscribe to queue. 1st arg is error if is.    2nd - consumerTag. |\n\n\u003ca name=\"Basic+cancel\"\u003e\u003c/a\u003e\n### basic.cancel(consumerTag, [options], callback)\nEnd a queue consumer.\n\nThis method cancels a consumer. This does not affect already delivered messages,\nbut it does mean the server will not send any more messages for that consumer.\nThe client may receive an arbitrary number of messages in between sending the cancel\nmethod and receiving the cancel-ok reply.\nIt may also be sent from the server to the client in the event of the consumer\nbeing unexpectedly cancelled (i.e. cancelled for any reason other than the server\nreceiving the corresponding basic.cancel from the client).\nThis allows clients to be notified of the loss of consumers due to events such as\nqueue deletion. Note that as it is not a MUST for clients to accept this method from\nthe server, it is advisable for the broker to be able to identify those clients that\nare capable of accepting the method, through some means of capability negotiation.\n\n* If the queue does not exist the server MUST ignore the cancel method,\nso long as the consumer tag is valid for that channel.\n\n**Kind**: instance method of \u003ccode\u003e[Basic](#Basic)\u003c/code\u003e  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| consumerTag | \u003ccode\u003eString\u003c/code\u003e |  | Identifier for the consumer, valid within the current channel. |\n| [options] | \u003ccode\u003eObject\u003c/code\u003e |  |  |\n| [options.noWait] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If set, the server will not respond to the method.    The client should not wait for a reply method.    If the server could not complete the method it will raise a channel or    connection exception. |\n| callback | \u003ccode\u003efunction\u003c/code\u003e |  |  |\n\n\u003ca name=\"Basic+publish\"\u003e\u003c/a\u003e\n### basic.publish(exchange, routingKey, body, [options], [headers], [callback])\nPublish a message.\n\nThis method publishes a message to a specific exchange.\nThe message will be routed to queues as defined by the exchange configuration and\ndistributed to any active consumers when the transaction, if any, is committed.\n\n**Kind**: instance method of \u003ccode\u003e[Basic](#Basic)\u003c/code\u003e  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| exchange | \u003ccode\u003eString\u003c/code\u003e | \u003ccode\u003e\u0026#x27;\u0026#x27;\u003c/code\u003e | Specifies the name of the exchange to publish to.    The exchange name can be empty, meaning the default exchange.    If the exchange name is specified, and that exchange does not exist,    the server will raise a channel exception.    * The client MUST NOT attempt to publish a content to an exchange that does not exist.    Error code: not-found.    * The server MUST accept a blank exchange name to mean the default exchange.    * If the exchange was declared as an internal exchange, the server MUST raise a    channel exception with a reply code 403 (access refused).    * The exchange MAY refuse basic content in which case it MUST raise a    channel exception with reply code 540 (not implemented). |\n| routingKey | \u003ccode\u003eString\u003c/code\u003e | \u003ccode\u003e\u0026#x27;\u0026#x27;\u003c/code\u003e | Specifies the routing key for the message.    The routing key is used for routing messages depending on the exchange configuration. |\n| body | \u003ccode\u003eString\u003c/code\u003e |  |  |\n| [options] | \u003ccode\u003eObject\u003c/code\u003e |  |  |\n| [options.mandatory] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | This flag tells the server how to react if the    message cannot be routed to a queue.    If this flag is set, the server will return an unroutable message with a Return method.    If this flag is zero, the server silently drops the message. |\n| [options.immediate] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | This flag tells the server how to react if    the message cannot be routed to a queue consumer immediately.    If this flag is set, the server will return an undeliverable message with a Return method.    If this flag is zero, the server will queue the message, but with no guarantee that it    will ever be consumed. |\n| [options.callbackMechanism] | \u003ccode\u003eString\u003c/code\u003e | \u003ccode\u003e\u0026#x27;just_callback\u0026#x27;\u003c/code\u003e | Specify callback mechanism for publishing message. |\n| [options.replyTo] | \u003ccode\u003eString\u003c/code\u003e |  | Address to reply to. |\n| [options.appId] | \u003ccode\u003eString\u003c/code\u003e |  | Creating application id. |\n| [options.userId] | \u003ccode\u003eString\u003c/code\u003e |  | Creating user id. |\n| [options.timestamp] | \u003ccode\u003eDate\u003c/code\u003e |  | Message timestamp. |\n| [options.expiration] | \u003ccode\u003eString\u003c/code\u003e |  | Message expiration specification. |\n| [options.messageId] | \u003ccode\u003eString\u003c/code\u003e |  | Application message identifier.    By default sets to incremental counter with `_`prefix. |\n| [options.correlationId] | \u003ccode\u003eString\u003c/code\u003e |  | Application correlation identifier. |\n| [options.type] | \u003ccode\u003eString\u003c/code\u003e |  | Message type name. |\n| [options.contentType] | \u003ccode\u003eString\u003c/code\u003e |  | MIME content type. |\n| [options.contentEncoding] | \u003ccode\u003eString\u003c/code\u003e |  | MIME content encoding. |\n| [headers] | \u003ccode\u003eObject\u003c/code\u003e |  | User headers to message. |\n| [callback] | \u003ccode\u003efunction\u003c/code\u003e |  |  |\n\n\u003ca name=\"Basic+return\"\u003e\u003c/a\u003e\n### basic.return(replyCode, replyText, exchange, routingKey, body, callback)\nReturn a failed message.\n\nThis method returns an undeliverable message that was published with the \"immediate\"\nflag set, or an unroutable message published with the \"mandatory\" flag set.\nThe reply code and text provide information about the reason that the message\nwas undeliverable.\n\n**Kind**: instance method of \u003ccode\u003e[Basic](#Basic)\u003c/code\u003e  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| replyCode | \u003ccode\u003eNumber\u003c/code\u003e | The reply code. The AMQ reply codes are defined as constants at http://www.rabbitmq.com/amqp-0-9-1-reference.html#constants. |\n| replyText | \u003ccode\u003eString\u003c/code\u003e | The localised reply text. This text can be logged as an aid to resolving issues. |\n| exchange | \u003ccode\u003eString\u003c/code\u003e | Specifies the name of the exchange that the message was originally published to.    May be empty, meaning the default exchange. |\n| routingKey | \u003ccode\u003eString\u003c/code\u003e | Specifies the routing key name specified when the message was published. |\n| body | \u003ccode\u003eString\u003c/code\u003e | Specifies the routing key name specified when the message was published. |\n| callback | \u003ccode\u003efunction\u003c/code\u003e | Body of message, was returned. |\n\n\u003ca name=\"Basic+get\"\u003e\u003c/a\u003e\n### basic.get(queue, [options], callback)\nDirect access to a queue.\n\nThis method provides a direct access to the messages in a queue using a synchronous\ndialogue that is designed for specific types of application where synchronous\nfunctionality is more important than performance.\n\n**Kind**: instance method of \u003ccode\u003e[Basic](#Basic)\u003c/code\u003e  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| queue | \u003ccode\u003eString\u003c/code\u003e |  | Specifies the name of the queue to get a message from. |\n| [options] | \u003ccode\u003eObject\u003c/code\u003e |  |  |\n| [options.noAck] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If this field is set the server does not expect    acknowledgements for messages. That is, when a message is delivered to the client    the server assumes the delivery will succeed and immediately dequeues it.    This functionality may increase performance but at the cost of reliability.    Messages can get lost if a client dies before they are delivered to the application. |\n| callback | \u003ccode\u003efunction\u003c/code\u003e |  | 1st parameter is error. 2ns - is body of message. Is null - queue is empty.    3rd arg is headers of messages.    4th arg is arguments of message.    5th arg is options of message. |\n\n\u003ca name=\"Basic+ack\"\u003e\u003c/a\u003e\n### basic.ack(deliveryTag, [options], callback)\nAcknowledge one or more messages.\n\nWhen sent by the client, this method acknowledges one or more messages delivered\nvia the Deliver or Get-Ok methods.\nWhen sent by server, this method acknowledges one or more messages published with the\nPublish method on a channel in confirm mode.\nThe acknowledgement can be for a single message or a set of messages up to and\nincluding a specific message.\n\n**Kind**: instance method of \u003ccode\u003e[Basic](#Basic)\u003c/code\u003e  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| deliveryTag | \u003ccode\u003eNumber\u003c/code\u003e |  | The server-assigned and channel-specific delivery tag.    * You can found it on properties of consumed message.    * The delivery tag is valid only within the channel from which the message was received.    I.e. a client MUST NOT receive a message on one channel and then acknowledge it on another.    * The server MUST NOT use a zero value for delivery tags.    Zero is reserved for client use, meaning \"all messages so far received\". |\n| [options] | \u003ccode\u003eObject\u003c/code\u003e |  |  |\n| [options.multiple] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If set to 1, the delivery tag is treated as    \"up to and including\", so that multiple messages can be acknowledged with a single method.    If set to zero, the delivery tag refers to a single message.    If the multiple field is 1, and the delivery tag is zero,    this indicates acknowledgement of all outstanding messages.    * A message MUST not be acknowledged more than once.    The receiving peer MUST validate that a non-zero delivery-tag refers    to a delivered message, and raise a channel exception if this is not the case.    On a transacted channel, this check MUST be done immediately and not delayed until    a Tx.Commit. Error code: precondition-failed |\n| callback | \u003ccode\u003efunction\u003c/code\u003e |  |  |\n\n\u003ca name=\"Basic+reject\"\u003e\u003c/a\u003e\n### basic.reject(deliveryTag, [options], callback)\nReject an incoming message.\n\nThis method allows a client to reject a message.\nIt can be used to interrupt and cancel large incoming messages,\nor return untreatable messages to their original queue.\n* The server SHOULD be capable of accepting and process the Reject method\nwhile sending message content with a Deliver or Get-Ok method.\nI.e. the server should read and process incoming methods while sending output frames.\nTo cancel a partially-send content, the server sends a content body frame of size 1\n(i.e. with no data except the frame-end octet).\n* The server SHOULD interpret this method as meaning that the client is unable\nto process the message at this time.\n* The client MUST NOT use this method as a means of selecting messages to process.\n\n**Kind**: instance method of \u003ccode\u003e[Basic](#Basic)\u003c/code\u003e  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| deliveryTag | \u003ccode\u003eNumber\u003c/code\u003e |  | The server-assigned and channel-specific delivery tag.    * You can found it on properties of consumed message.    * The delivery tag is valid only within the channel from which the message was received.    I.e. a client MUST NOT receive a message on one channel and then acknowledge it on another.    * The server MUST NOT use a zero value for delivery tags.    Zero is reserved for client use, meaning \"all messages so far received\". |\n| [options] | \u003ccode\u003eObject\u003c/code\u003e |  |  |\n| [options.requeue] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If requeue is true, the server will attempt to requeue the message.    If requeue is false or the requeue attempt fails the messages are discarded or dead-lettered.    * The server MUST NOT deliver the message to the same client within the context of    the current channel. The recommended strategy is to attempt to deliver the message    to an alternative consumer, and if that is not possible,    to move the message to a dead-letter queue.    The server MAY use more sophisticated tracking to hold the message on    the queue and redeliver it to the same client at a later stage. |\n| callback | \u003ccode\u003efunction\u003c/code\u003e |  |  |\n\n\u003ca name=\"Basic+recoverAsync\"\u003e\u003c/a\u003e\n### basic.recoverAsync([options], callback)\nRedeliver unacknowledged messages.\n\nThis method asks the server to redeliver all unacknowledged messages on a specified channel.\nZero or more messages may be redelivered.\nThis method is deprecated in favour of the synchronous Recover/Recover-Ok.\n* The server MUST set the redelivered flag on all messages that are resent.\n\n**Kind**: instance method of \u003ccode\u003e[Basic](#Basic)\u003c/code\u003e  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| [options] | \u003ccode\u003eObject\u003c/code\u003e |  |  |\n| [options.requeue] | \u003ccode\u003eObject\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If this field is zero,    the message will be redelivered to the original recipient.    If this bit is 1, the server will attempt to requeue the message,    potentially then delivering it to an alternative subscriber. |\n| callback | \u003ccode\u003efunction\u003c/code\u003e |  |  |\n\n\u003ca name=\"Basic+recover\"\u003e\u003c/a\u003e\n### basic.recover([options], callback)\nRedeliver unacknowledged messages.\n\nThis method asks the server to redeliver all unacknowledged messages on a specified channel.\nZero or more messages may be redelivered. This method replaces the asynchronous Recover.\n* The server MUST set the redelivered flag on all messages that are resent.\n\n**Kind**: instance method of \u003ccode\u003e[Basic](#Basic)\u003c/code\u003e  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| [options] | \u003ccode\u003eObject\u003c/code\u003e |  |  |\n| [options.requeue] | \u003ccode\u003eObject\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If this field is zero,    the message will be redelivered to the original recipient.    If this bit is 1, the server will attempt to requeue the message,    potentially then delivering it to an alternative subscriber. |\n| callback | \u003ccode\u003efunction\u003c/code\u003e |  |  |\n\n\u003ca name=\"Basic+nack\"\u003e\u003c/a\u003e\n### basic.nack(deliveryTag, [options], callback)\nReject one or more incoming messages.\n\nThis method allows a client to reject one or more incoming messages.\nIt can be used to interrupt and cancel large incoming messages,\nor return untreatable messages to their original queue.\nThis method is also used by the server to inform publishers on channels in\nconfirm mode of unhandled messages. If a publisher receives this method,\nit probably needs to republish the offending messages.\n* The server SHOULD be capable of accepting and processing the Nack method while\nsending message content with a Deliver or Get-Ok method.\nI.e. the server should read and process incoming methods while sending output frames.\nTo cancel a partially-send content, the server sends a content body frame of size 1\n(i.e. with no data except the frame-end octet).\n* The server SHOULD interpret this method as meaning that the client is unable\nto process the message at this time.\n* The client MUST NOT use this method as a means of selecting messages to process.\n* A client publishing messages to a channel in confirm mode SHOULD be capable of accepting\nand somehow handling the Nack method.\n\n**Kind**: instance method of \u003ccode\u003e[Basic](#Basic)\u003c/code\u003e  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| deliveryTag | \u003ccode\u003eNumber\u003c/code\u003e |  | The server-assigned and channel-specific delivery tag.    * You can found it on properties of consumed message.    * The delivery tag is valid only within the channel from which the message was received.    I.e. a client MUST NOT receive a message on one channel and then acknowledge it on another.    * The server MUST NOT use a zero value for delivery tags.    Zero is reserved for client use, meaning \"all messages so far received\". |\n| [options] | \u003ccode\u003eObject\u003c/code\u003e |  |  |\n| [options.multiple] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If set to 1, the delivery tag is treated as    \"up to and including\", so that multiple messages can be rejected with a single method.    If set to zero, the delivery tag refers to a single message.    If the multiple field is 1, and the delivery tag is zero, this indicates rejection    of all outstanding messages.    * A message MUST not be rejected more than once.    The receiving peer MUST validate that a non-zero delivery-tag refers to an unacknowledged,    delivered message, and raise a channel exception if this is not the case.    Error code: precondition-failed |\n| [options.requeue] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If requeue is true, the server will attempt to    requeue the message. If requeue is false or the requeue attempt fails the    messages are discarded or dead-lettered.    Clients receiving the Nack methods should ignore this flag.    * The server MUST NOT deliver the message to the same client within the context    of the current channel. The recommended strategy is to attempt to deliver    the message to an alternative consumer, and if that is not possible,    to move the message to a dead-letter queue.    The server MAY use more sophisticated tracking to hold the message on the    queue and redeliver it to the same client at a later stage. |\n| callback | \u003ccode\u003efunction\u003c/code\u003e |  |  |\n\n\u003ca name=\"Channel\"\u003e\u003c/a\u003e\n## Channel ⇐ \u003ccode\u003eEventEmitter\u003c/code\u003e\nChannel\n\n**Kind**: global class  \n**Extends:** \u003ccode\u003eEventEmitter\u003c/code\u003e  \n\n* [Channel](#Channel) ⇐ \u003ccode\u003eEventEmitter\u003c/code\u003e\n    * [new Channel(client, id)](#new_Channel_new)\n    * [.open(callback)](#Channel+open)\n    * [.close(callback)](#Channel+close)\n    * [.flow(active, callback)](#Channel+flow)\n    * [.$getId()](#Channel+$getId) ⇒ \u003ccode\u003eNumber\u003c/code\u003e\n    * [.$isClosed()](#Channel+$isClosed) ⇒ \u003ccode\u003eBoolean\u003c/code\u003e\n    * [.isOpened()](#Channel+isOpened) ⇒ \u003ccode\u003eBoolean\u003c/code\u003e\n    * [.$setConfirmMode(c)](#Channel+$setConfirmMode)\n    * [.$isConfirmMode()](#Channel+$isConfirmMode) ⇒ \u003ccode\u003eBoolean\u003c/code\u003e\n\n\u003ca name=\"new_Channel_new\"\u003e\u003c/a\u003e\n### new Channel(client, id)\nWork with channels.\n\nThe channel class provides methods for a client to establish a channel to a server\nand for both peers to operate the channel thereafter.\n\n\n| Param | Type | Description |\n| --- | --- | --- |\n| client | \u003ccode\u003eBRAMQPClient\u003c/code\u003e | Client object that returns from bramqp#openAMQPCommunication() method. |\n| id | \u003ccode\u003eNumber\u003c/code\u003e | Channel id. |\n\n\u003ca name=\"Channel+open\"\u003e\u003c/a\u003e\n### channel.open(callback)\nOpen a channel for use.\n\nThis method opens a channel to the server.\n* The client MUST NOT use this method on an already-opened channel. Error code: channel-error\n\n**Kind**: instance method of \u003ccode\u003e[Channel](#Channel)\u003c/code\u003e  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| callback | \u003ccode\u003efunction\u003c/code\u003e | on callback - 1st argument is error. |\n\n\u003ca name=\"Channel+close\"\u003e\u003c/a\u003e\n### channel.close(callback)\nRequest a channel close.\n\nThis method indicates that the sender wants to close the channel.\nThis may be due to internal conditions (e.g. a forced shut-down) or due to an\nerror handling a specific method, i.e. an exception.\nWhen a close is due to an exception, the sender provides the class and method\nid of the method which caused the exception.\n\n* After sending this method, any received methods except Close and Close-OK MUST\nbe discarded. The response to receiving a Close after sending Close must be to send Close-Ok.\n\n**Kind**: instance method of \u003ccode\u003e[Channel](#Channel)\u003c/code\u003e  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| callback | \u003ccode\u003efunction\u003c/code\u003e | on callback - 1st argument is error. |\n\n\u003ca name=\"Channel+flow\"\u003e\u003c/a\u003e\n### channel.flow(active, callback)\nEnable/disable flow from peer.\n\nThis method asks the peer to pause or restart the flow of content data sent by a consumer.\nThis is a simple flow-control mechanism that a peer can use to avoid overflowing its\nqueues or otherwise finding itself receiving more messages than it can process.\nNote that this method is not intended for window control.\nIt does not affect contents returned by Basic.Get-Ok methods.\n\n* When a new channel is opened, it is active (flow is active).\nSome applications assume that channels are inactive until started.\nTo emulate this behaviour a client MAY open the channel, then pause it.\n\n\n* When sending content frames, a peer SHOULD monitor the channel for incoming methods a\nnd respond to a Channel.Flow as rapidly as possible.\n\n* A peer MAY use the Channel.Flow method to throttle incoming content data for\ninternal reasons, for example, when exchanging data over a slower connection.\n\n* The peer that requests a Channel.Flow method MAY disconnect and/or ban a peer\nthat does not respect the request. This is to prevent badly-behaved clients from\noverwhelming a server.\n\n**Kind**: instance method of \u003ccode\u003e[Channel](#Channel)\u003c/code\u003e  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| active | \u003ccode\u003eBoolean\u003c/code\u003e | If `true`, the peer starts sending content frames. If `false`, the peer stops sending content frames. |\n| callback | \u003ccode\u003efunction\u003c/code\u003e | on callback - 1st argument is error. 2ns argument is: `true` means the peer will start sending or continue to send content frames; `false` means it will not. |\n\n\u003ca name=\"Channel+$getId\"\u003e\u003c/a\u003e\n### channel.$getId() ⇒ \u003ccode\u003eNumber\u003c/code\u003e\nReturn is of channel.\n\n**Kind**: instance method of \u003ccode\u003e[Channel](#Channel)\u003c/code\u003e  \n\u003ca name=\"Channel+$isClosed\"\u003e\u003c/a\u003e\n### channel.$isClosed() ⇒ \u003ccode\u003eBoolean\u003c/code\u003e\nReturn `true` if channel is closed.\n\n**Kind**: instance method of \u003ccode\u003e[Channel](#Channel)\u003c/code\u003e  \n\u003ca name=\"Channel+isOpened\"\u003e\u003c/a\u003e\n### channel.isOpened() ⇒ \u003ccode\u003eBoolean\u003c/code\u003e\nReturn `true` if channel is opened.\n\n**Kind**: instance method of \u003ccode\u003e[Channel](#Channel)\u003c/code\u003e  \n\u003ca name=\"Channel+$setConfirmMode\"\u003e\u003c/a\u003e\n### channel.$setConfirmMode(c)\nSet confirm mode to arg.\n\n**Kind**: instance method of \u003ccode\u003e[Channel](#Channel)\u003c/code\u003e  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| c | \u003ccode\u003eBoolean\u003c/code\u003e | `true` if now is im confirm mode. |\n\n\u003ca name=\"Channel+$isConfirmMode\"\u003e\u003c/a\u003e\n### channel.$isConfirmMode() ⇒ \u003ccode\u003eBoolean\u003c/code\u003e\nCheck, if channel is in configm mode.\n\n**Kind**: instance method of \u003ccode\u003e[Channel](#Channel)\u003c/code\u003e  \n\u003ca name=\"Confirm\"\u003e\u003c/a\u003e\n## Confirm\n**Kind**: global class  \n\n* [Confirm](#Confirm)\n    * [new Confirm(client, channel)](#new_Confirm_new)\n    * [.select([options], callback)](#Confirm+select)\n\n\u003ca name=\"new_Confirm_new\"\u003e\u003c/a\u003e\n### new Confirm(client, channel)\nWork with confirms.\n\nThe Confirm class allows publishers to put the channel in confirm mode and susequently\nbe notified when messages have been handled by the broker.\nThe intention is that all messages published on a channel in confirm mode will be\nacknowledged at some point. By acknowledging a message the broker assumes responsibility\nfor it and indicates that it has done something it deems reasonable with it.\nUnroutable mandatory or immediate messages are acknowledged right after the\nBasic.Return method. Messages are acknowledged when all queues to which the message has\nbeen routed have either delivered the message and received an acknowledgement (if required),\nor enqueued the message (and persisted it if required).\nPublished messages are assigned ascending sequence numbers,\nstarting at 1 with the first Confirm.Select method.\nThe server confirms messages by sending Basic.Ack methods referring to these sequence numbers.\n\n\n| Param | Type | Description |\n| --- | --- | --- |\n| client | \u003ccode\u003eBRAMQPClient\u003c/code\u003e | Client object that returns from bramqp#openAMQPCommunication() method. |\n| channel | \u003ccode\u003e[Channel](#Channel)\u003c/code\u003e | Channel object (should be opened). |\n\n\u003ca name=\"Confirm+select\"\u003e\u003c/a\u003e\n### confirm.select([options], callback)\nThis method sets the channel to use publisher acknowledgements.\nThe client can only use this method on a non-transactional channel.\n\n**Kind**: instance method of \u003ccode\u003e[Confirm](#Confirm)\u003c/code\u003e  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| [options] | \u003ccode\u003eObject\u003c/code\u003e |  |  |\n| [options.noWait] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If set, the server will not respond to the method.    The client should not wait for a reply method.    If the server could not complete the method it will raise a channel or connection exception. |\n| callback | \u003ccode\u003efunction\u003c/code\u003e |  |  |\n\n\u003ca name=\"Exchange\"\u003e\u003c/a\u003e\n## Exchange ⇐ \u003ccode\u003eEventEmitter\u003c/code\u003e\n**Kind**: global class  \n**Extends:** \u003ccode\u003eEventEmitter\u003c/code\u003e  \n\n* [Exchange](#Exchange) ⇐ \u003ccode\u003eEventEmitter\u003c/code\u003e\n    * [new Exchange(client, channel)](#new_Exchange_new)\n    * [.declare(exchange, [type], [options], callback)](#Exchange+declare)\n    * [.delete(exchange, [options], callback)](#Exchange+delete)\n    * [.bind(destination, source, routingKey, [options], callback)](#Exchange+bind)\n    * [.unbind(destination, source, routingKey, [options], callback)](#Exchange+unbind)\n\n\u003ca name=\"new_Exchange_new\"\u003e\u003c/a\u003e\n### new Exchange(client, channel)\nWork with exchanges.\n\nExchanges match and distribute messages across queues.\nExchanges can be configured in the server or declared at runtime.\n\n\n| Param | Type | Description |\n| --- | --- | --- |\n| client | \u003ccode\u003eBRAMQPClient\u003c/code\u003e | Client object that returns from bramqp#openAMQPCommunication() method. |\n| channel | \u003ccode\u003e[Channel](#Channel)\u003c/code\u003e | Channel object (should be opened). |\n\n\u003ca name=\"Exchange+declare\"\u003e\u003c/a\u003e\n### exchange.declare(exchange, [type], [options], callback)\nVerify exchange exists, create if needed.\n\nThis method creates an exchange if it does not already exist,\nand if the exchange exists, verifies that it is of the correct and expected class.\n* The server SHOULD support a minimum of 16 exchanges per virtual host and ideally,\nimpose no limit except as defined by available resources.\n\n**Kind**: instance method of \u003ccode\u003e[Exchange](#Exchange)\u003c/code\u003e  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| exchange | \u003ccode\u003eString\u003c/code\u003e |  | The exchange name is a client-selected string that identifies the    exchange for publish methods.    * Exchange names starting with \"amq.\" are reserved for pre-declared and standardised    exchanges. The client MAY declare an exchange starting with \"amq.\" if the passive option    is set, or the exchange already exists. Error code: access-refused    * The exchange name consists of a non-empty sequence of these characters:    letters, digits, hyphen, underscore, period, or colon. Error code: precondition-failed |\n| [type] | \u003ccode\u003eString\u003c/code\u003e | \u003ccode\u003e\u0026#x27;topic\u0026#x27;\u003c/code\u003e | Each exchange belongs to one of a set of exchange types    implemented by the server. The exchange types define the functionality of the    exchange - i.e. how messages are routed through it. It is not valid or meaningful    to attempt to change the type of an existing exchange.    * Exchanges cannot be redeclared with different types.    The client MUST not attempt to redeclare an existing exchange with a    different type than used in the original Exchange.Declare method.    Error code: not-allowed    * The client MUST NOT attempt to declare an exchange with a type that    the server does not support. Error code: command-invalid |\n| [options] | \u003ccode\u003eObject\u003c/code\u003e |  |  |\n| [options.passive] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If set, the server will reply with Declare-Ok    if the exchange already exists with the same name, and raise an error if not.    The client can use this to check whether an exchange exists without modifying the    server state. When set, all other method fields except name and no-wait are ignored.    A declare with both passive and no-wait has no effect.    Arguments are compared for semantic equivalence.    * If set, and the exchange does not already exist, the server MUST raise a    channel exception with reply code 404 (not found).    * If not set and the exchange exists, the server MUST check that the existing    exchange has the same values for type, durable, and arguments fields.    The server MUST respond with Declare-Ok if the requested exchange matches these fields,    and MUST raise a channel exception if not. |\n| [options.durable] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If set when creating a new exchange,    the exchange will be marked as durable.    Durable exchanges remain active when a server restarts.    Non-durable exchanges (transient exchanges) are purged if/when a server restarts.    * The server MUST support both durable and transient exchanges. |\n| [options.autoDelete] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If set, the exchange is deleted when all queues    have finished using it.    * The server SHOULD allow for a reasonable delay between the point when    it determines that an exchange is not being used (or no longer used),    and the point when it deletes the exchange.    At the least it must allow a client to create an exchange and then bind a queue to it,    with a small but non-zero delay between these two actions.    * The server MUST ignore the auto-delete field if the exchange already exists. |\n| [options.internal] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If set, the exchange may not be used directly    by publishers, but only when bound to other exchanges.    Internal exchanges are used to construct wiring that is not visible to applications. |\n| [options.noWait] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If set, the server will not respond to the method.    The client should not wait for a reply method.    If the server could not complete the method it will raise a channel or connection exception. |\n| [options.arguments] | \u003ccode\u003eObject\u003c/code\u003e | \u003ccode\u003e{}\u003c/code\u003e | A set of arguments for the declaration.    The syntax and semantics of these arguments depends on the server implementation. |\n| callback | \u003ccode\u003efunction\u003c/code\u003e |  |  |\n\n\u003ca name=\"Exchange+delete\"\u003e\u003c/a\u003e\n### exchange.delete(exchange, [options], callback)\nDelete an exchange.\n\nThis method deletes an exchange.\nWhen an exchange is deleted all queue bindings on the exchange are cancelled.\n\n**Kind**: instance method of \u003ccode\u003e[Exchange](#Exchange)\u003c/code\u003e  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| exchange | \u003ccode\u003eString\u003c/code\u003e |  | The exchange name is a client-selected string that    identifies the exchange for publish methods.    * The client MUST NOT attempt to delete an exchange that does not exist.    Error code: not-found |\n| [options] | \u003ccode\u003eObject\u003c/code\u003e |  |  |\n| [options.ifUnused] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If set, the server will only delete the exchange if it    has no queue bindings. If the exchange has queue bindings the server does not    delete it but raises a channel exception instead.    * The server MUST NOT delete an exchange that has bindings on it,    if the if-unused field is true. Error code: precondition-failed |\n| [options.noWait] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If set, the server will not respond to the method.    The client should not wait for a reply method.    If the server could not complete the method it will raise a channel or connection exception. |\n| callback | \u003ccode\u003efunction\u003c/code\u003e |  |  |\n\n\u003ca name=\"Exchange+bind\"\u003e\u003c/a\u003e\n### exchange.bind(destination, source, routingKey, [options], callback)\nBind exchange to an exchange.\n\nThis method binds an exchange to an exchange.\n* A server MUST allow and ignore duplicate bindings - that is, two or more bind\nmethods for a specific exchanges, with identical arguments - without treating these\nas an error.\n* A server MUST allow cycles of exchange bindings to be created including allowing\nan exchange to be bound to itself.\n* A server MUST not deliver the same message more than once to a destination exchange,\neven if the topology of exchanges and bindings results in multiple (even infinite)\nroutes to that exchange.\n\n**Kind**: instance method of \u003ccode\u003e[Exchange](#Exchange)\u003c/code\u003e  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| destination | \u003ccode\u003eString\u003c/code\u003e |  | Specifies the name of the destination exchange to bind.    * A client MUST NOT be allowed to bind a non-existent destination exchange.    Error code: not-found    * The server MUST accept a blank exchange name to mean the default exchange. |\n| source | \u003ccode\u003eString\u003c/code\u003e |  | Specifies the name of the source exchange to bind.    * A client MUST NOT be allowed to bind a non-existent source exchange.    Error code: not-found    * The server MUST accept a blank exchange name to mean the default exchange. |\n| routingKey | \u003ccode\u003eString\u003c/code\u003e |  | Specifies the routing key for the binding.    The routing key is used for routing messages depending on the exchange configuration.    Not all exchanges use a routing key - refer to the specific exchange documentation. |\n| [options] | \u003ccode\u003eObject\u003c/code\u003e |  |  |\n| [options.noWait] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If set, the server will not respond to the method.    The client should not wait for a reply method.    If the server could not complete the method it will raise a channel or connection exception. |\n| [options.arguments] | \u003ccode\u003eObject\u003c/code\u003e | \u003ccode\u003e{}\u003c/code\u003e | A set of arguments for the declaration.    The syntax and semantics of these arguments depends on the server implementation. |\n| callback | \u003ccode\u003efunction\u003c/code\u003e |  |  |\n\n\u003ca name=\"Exchange+unbind\"\u003e\u003c/a\u003e\n### exchange.unbind(destination, source, routingKey, [options], callback)\nUnbind an exchange from an exchange.\n\nThis method unbinds an exchange from an exchange.\nIf a unbind fails, the server MUST raise a connection exception.\n\n**Kind**: instance method of \u003ccode\u003e[Exchange](#Exchange)\u003c/code\u003e  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| destination | \u003ccode\u003eString\u003c/code\u003e |  | Specifies the name of the destination exchange to unbind.    * The client MUST NOT attempt to unbind an exchange that does not exist from an exchange.    Error code: not-found    * The server MUST accept a blank exchange name to mean the default exchange. |\n| source | \u003ccode\u003eString\u003c/code\u003e |  | Specifies the name of the source exchange to unbind.    * The client MUST NOT attempt to unbind an exchange from an exchange that does not exist.    Error code: not-found    * The server MUST accept a blank exchange name to mean the default exchange. |\n| routingKey | \u003ccode\u003eString\u003c/code\u003e |  | Specifies the routing key of the binding to unbind. |\n| [options] | \u003ccode\u003eObject\u003c/code\u003e |  |  |\n| [options.noWait] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If set, the server will not respond to the method.    The client should not wait for a reply method.    If the server could not complete the method it will raise a channel or connection exception. |\n| [options.arguments] | \u003ccode\u003eObject\u003c/code\u003e | \u003ccode\u003e{}\u003c/code\u003e | A set of arguments for the declaration.    The syntax and semantics of these arguments depends on the server implementation. |\n| callback | \u003ccode\u003efunction\u003c/code\u003e |  |  |\n\n\u003ca name=\"Queue\"\u003e\u003c/a\u003e\n## Queue ⇐ \u003ccode\u003eEventEmitter\u003c/code\u003e\n**Kind**: global class  \n**Extends:** \u003ccode\u003eEventEmitter\u003c/code\u003e  \n\n* [Queue](#Queue) ⇐ \u003ccode\u003eEventEmitter\u003c/code\u003e\n    * [new Queue(client, channel)](#new_Queue_new)\n    * [.declare(queue, [options], callback)](#Queue+declare)\n    * [.bind(queue, exchange, routingKey, [options], callback)](#Queue+bind)\n    * [.unbind(queue, exchange, routingKey, [options], callback)](#Queue+unbind)\n    * [.purge(queue, [options], callback)](#Queue+purge)\n    * [.delete(queue, [options], callback)](#Queue+delete)\n\n\u003ca name=\"new_Queue_new\"\u003e\u003c/a\u003e\n### new Queue(client, channel)\nWork with queues.\n\nQueues store and forward messages.\nQueues can be configured in the server or created at runtime.\nQueues must be attached to at least one exchange in order to receive messages from publishers.\n\n\n| Param | Type | Description |\n| --- | --- | --- |\n| client | \u003ccode\u003eBRAMQPClient\u003c/code\u003e | Client object that returns from bramqp#openAMQPCommunication() method. |\n| channel | \u003ccode\u003e[Channel](#Channel)\u003c/code\u003e | Channel object (should be opened). |\n\n\u003ca name=\"Queue+declare\"\u003e\u003c/a\u003e\n### queue.declare(queue, [options], callback)\nDeclare queue, create if needed.\n\nThis method creates or checks a queue.\nWhen creating a new queue the client can specify various properties that control the\ndurability of the queue and its contents, and the level of sharing for the queue.\n* The server MUST create a default binding for a newly-declared queue to the default exchange,\nwhich is an exchange of type 'direct' and use the queue name as the routing key.\n* The server SHOULD support a minimum of 256 queues per virtual host and ideally,\nimpose no limit except as defined by available resources.\n\n**Kind**: instance method of \u003ccode\u003e[Queue](#Queue)\u003c/code\u003e  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| queue | \u003ccode\u003eString\u003c/code\u003e |  | The queue name MAY be empty, in which case the server MUST create    a new queue with a unique generated name and return this to the client in the    Declare-Ok method.    * Queue names starting with \"amq.\" are reserved for pre-declared and standardised queues.    The client MAY declare a queue starting with \"amq.\" if the passive option is set,    or the queue already exists. Error code: access-refused    * The queue name can be empty, or a sequence of these characters: letters, digits,    hyphen, underscore, period, or colon. Error code: precondition-failed |\n| [options] | \u003ccode\u003eObject\u003c/code\u003e |  |  |\n| [options.passive] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If set, the server will reply with Declare-Ok    if the queue already exists with the same name, and raise an error if not.    The client can use this to check whether a queue exists without modifying the server state.    When set, all other method fields except name and no-wait are ignored.    A declare with both passive and no-wait has no effect.    Arguments are compared for semantic equivalence.    * The client MAY ask the server to assert that a queue exists without creating    the queue if not. If the queue does not exist, the server treats this as a failure.    Error code: not-found    * If not set and the queue exists, the server MUST check that the existing queue    has the same values for durable, exclusive, auto-delete, and arguments fields.    The server MUST respond with Declare-Ok if the requested queue matches these fields,    and MUST raise a channel exception if not. |\n| [options.durable] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If set when creating a new queue,    the queue will be marked as durable.    Durable queues remain active when a server restarts.    Non-durable queues (transient queues) are purged if/when a server restarts.    Note that durable queues do not necessarily hold persistent messages, although    it does not make sense to send persistent messages to a transient queue.    * The server MUST recreate the durable queue after a restart.    * The server MUST support both durable and transient queues. |\n| [options.exclusive] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | Exclusive queues may only be accessed by the    current connection, and are deleted when that connection closes.    Passive declaration of an exclusive queue by other connections are not allowed.    * The server MUST support both exclusive (private) and non-exclusive (shared) queues.    * The client MAY NOT attempt to use a queue that was declared as exclusive by    another still-open connection. Error code: resource-locked |\n| [options.autoDelete] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If set, the queue is deleted when all consumers    have finished using it. The last consumer can be cancelled either explicitly or    because its channel is closed. If there was no consumer ever on the queue,    it won't be deleted. Applications can explicitly delete auto-delete queues using    the Delete method as normal.    * The server MUST ignore the auto-delete field if the queue already exists. |\n| [options.noWait] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If set, the server will not respond to the method.    The client should not wait for a reply method.    If the server could not complete the method it will raise a channel or connection exception. |\n| [options.arguments] | \u003ccode\u003eObject\u003c/code\u003e | \u003ccode\u003e{}\u003c/code\u003e | A set of arguments for the declaration.    The syntax and semantics of these arguments depends on the server implementation. |\n| callback | \u003ccode\u003efunction\u003c/code\u003e |  |  |\n\n\u003ca name=\"Queue+bind\"\u003e\u003c/a\u003e\n### queue.bind(queue, exchange, routingKey, [options], callback)\nBind queue to an exchange.\n\nThis method binds a queue to an exchange.\nUntil a queue is bound it will not receive any messages.\nIn a classic messaging model, store-and-forward queues are bound to a direct exchange\nand subscription queues are bound to a topic exchange.\n* A server MUST allow ignore duplicate bindings - that is, two or more bind methods for\na specific queue, with identical arguments - without treating these as an error.\n* A server MUST not deliver the same message more than once to a queue, even\nif the queue has multiple bindings that match the message.\n* The server MUST allow a durable queue to bind to a transient exchange.\n* Bindings of durable queues to durable exchanges are automatically durable and the\nserver MUST restore such bindings after a server restart.\n* The server SHOULD support at least 4 bindings per queue, and ideally,\nimpose no limit except as defined by available resources.\n\n**Kind**: instance method of \u003ccode\u003e[Queue](#Queue)\u003c/code\u003e  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| queue | \u003ccode\u003eString\u003c/code\u003e |  | Specifies the name of the queue to bind.    * The client MUST either specify a queue name or have previously declared a queue    on the same channel Error code: not-found    * The client MUST NOT attempt to bind a queue that does not exist. Error code: not-found |\n| exchange | \u003ccode\u003eString\u003c/code\u003e |  | Name of the exchange to bind to.    * A client MUST NOT be allowed to bind a queue to a non-existent exchange.    Error code: not-found    * The server MUST accept a blank exchange name to mean the default exchange. |\n| routingKey | \u003ccode\u003eString\u003c/code\u003e |  | Specifies the routing key for the binding.    The routing key is used for routing messages depending on the exchange configuration.    Not all exchanges use a routing key - refer to the specific exchange documentation.    If the queue name is empty, the server uses the last queue declared on the channel.    If the routing key is also empty, the server uses this queue name for the routing key    as well. If the queue name is provided but the routing key is empty, the server does the    binding with that empty routing key. The meaning of empty routing keys depends on the    exchange implementation.    * If a message queue binds to a direct exchange using routing key K and a publisher s    ends the exchange a message with routing key R, then the message MUST be passed to    the message queue if K = R. |\n| [options] | \u003ccode\u003eObject\u003c/code\u003e |  |  |\n| [options.noWait] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If set, the server will not respond to the method.    The client should not wait for a reply method.    If the server could not complete the method it will raise a channel or connection exception. |\n| [options.arguments] | \u003ccode\u003eObject\u003c/code\u003e | \u003ccode\u003e{}\u003c/code\u003e | A set of arguments for the declaration.    The syntax and semantics of these arguments depends on the server implementation. |\n| callback | \u003ccode\u003efunction\u003c/code\u003e |  |  |\n\n\u003ca name=\"Queue+unbind\"\u003e\u003c/a\u003e\n### queue.unbind(queue, exchange, routingKey, [options], callback)\nUnbind a queue from an exchange.\n\nThis method unbinds a queue from an exchange.\nIf a unbind fails, the server MUST raise a connection exception.\n\n**Kind**: instance method of \u003ccode\u003e[Queue](#Queue)\u003c/code\u003e  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| queue | \u003ccode\u003eString\u003c/code\u003e |  | Specifies the name of the queue to unbind.    * The client MUST either specify a queue name or have previously declared a    queue on the same channel Error code: not-found    * The client MUST NOT attempt to unbind a queue that does not exist. Error code: not-found |\n| exchange | \u003ccode\u003eString\u003c/code\u003e |  | The name of the exchange to unbind from.    * The client MUST NOT attempt to unbind a queue from an exchange that does not exist.    Error code: not-found    * The server MUST accept a blank exchange name to mean the default exchange. |\n| routingKey | \u003ccode\u003eString\u003c/code\u003e |  | Specifies the routing key of the binding to unbind. |\n| [options] | \u003ccode\u003eObject\u003c/code\u003e |  |  |\n| [options.arguments] | \u003ccode\u003eObject\u003c/code\u003e | \u003ccode\u003e{}\u003c/code\u003e | A set of arguments for the declaration.    The syntax and semantics of these arguments depends on the server implementation. |\n| callback | \u003ccode\u003efunction\u003c/code\u003e |  |  |\n\n\u003ca name=\"Queue+purge\"\u003e\u003c/a\u003e\n### queue.purge(queue, [options], callback)\nPurge a queue.\nThis method removes all messages from a queue which are not awaiting acknowledgment.\n* The server MUST NOT purge messages that have already been sent to a client but\nnot yet acknowledged.\n* The server MAY implement a purge queue or log that allows system administrators\nto recover accidentally-purged messages.\nThe server SHOULD NOT keep purged messages in the same storage spaces as the\nlive messages since the volumes of purged messages may get very large.\n\n**Kind**: instance method of \u003ccode\u003e[Queue](#Queue)\u003c/code\u003e  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| queue | \u003ccode\u003eString\u003c/code\u003e |  | Specifies the name of the queue to purge.    * The client MUST either specify a queue name or have previously declared a queue    on the same channel Error code: not-found    * The client MUST NOT attempt to purge a queue that does not exist. Error code: not-found |\n| [options] | \u003ccode\u003eObject\u003c/code\u003e |  |  |\n| [options.noWait] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If set, the server will not respond to the method.    The client should not wait for a reply method. |\n| callback | \u003ccode\u003efunction\u003c/code\u003e |  |  |\n\n\u003ca name=\"Queue+delete\"\u003e\u003c/a\u003e\n### queue.delete(queue, [options], callback)\nDelete a queue.\n\nThis method deletes a queue.\nWhen a queue is deleted any pending messages are sent to a dead-letter queue if this\nis defined in the server configuration, and all consumers on the queue are cancelled.\n* The server SHOULD use a dead-letter queue to hold messages that were pending on a\ndeleted queue, and MAY provide facilities for a system administrator to move these messages\nback to an active queue.\n\n**Kind**: instance method of \u003ccode\u003e[Queue](#Queue)\u003c/code\u003e  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| queue | \u003ccode\u003eString\u003c/code\u003e |  | Specifies the name of the queue to delete.    * The client MUST either specify a queue name or have previously declared a queue    on the same channel Error code: not-found    * The client MUST NOT attempt to delete a queue that does not exist.    Error code: not-found |\n| [options] | \u003ccode\u003eObject\u003c/code\u003e |  |  |\n| [options.ifUnused] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If set, the server will only delete the queue if it has no consumers.    If the queue has consumers the server does does not delete it but raises a channel    exception instead.    * The server MUST NOT delete a queue that has consumers on it,    if the if-unused field is true. Error code: precondition-failed |\n| [options.ifEmpty] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If set, the server will only delete the queue if it has no messages.    * The server MUST NOT delete a queue that has messages on it,    if the if-empty field is true. Error code: precondition-failed |\n| [options.noWait] | \u003ccode\u003eBoolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | If set, the server will not respond to the method.    The client should not wait for a reply method. |\n| callback | \u003ccode\u003efunction\u003c/code\u003e |  |  |\n\n\u003ca name=\"RabbitClientError\"\u003e\u003c/a\u003e\n## RabbitClientError\n**Kind**: global class  \n\u003ca name=\"new_RabbitClientError_new\"\u003e\u003c/a\u003e\n### new RabbitClientError(errorObject)\n\n| Param | Type | Description |\n| --- | --- | --- |\n| errorObject | \u003ccode\u003eObject\u003c/code\u003e | Object, that RabbitMq returns. |\n\n\u003ca name=\"RabbitRouteError\"\u003e\u003c/a\u003e\n## RabbitRouteError\n**Kind**: global class  \n\u003ca name=\"new_RabbitRouteError_new\"\u003e\u003c/a\u003e\n### new RabbitRouteError(errorObject)\n\n| Param | Type | Description |\n| --- | --- | --- |\n| errorObject | \u003ccode\u003eObject\u003c/code\u003e | Object, that RabbitMq returns. |\n\n\u003ca name=\"TX\"\u003e\u003c/a\u003e\n## TX ⇐ \u003ccode\u003eEventEmitter\u003c/code\u003e\n**Kind**: global class  \n**Extends:** \u003ccode\u003eEventEmitter\u003c/code\u003e  \n\n* [TX](#TX) ⇐ \u003ccode\u003eEventEmitter\u003c/code\u003e\n    * [new TX(client, channel)](#new_TX_new)\n    * [.select(callback)](#TX+select)\n    * [.commit(callback)](#TX+commit)\n    * [.rollback(callback)](#TX+rollback)\n\n\u003ca name=\"new_TX_new\"\u003e\u003c/a\u003e\n### new TX(client, channel)\nWork with transactions.\n\nThe Tx class allows publish and ack operations to be batched into atomic units of work.\nThe intention is that all publish and ack requests issued within a transaction will\ncomplete successfully or none of them will.\nServers SHOULD implement atomic transactions at least where all publish or ack requests\naffect a single queue. Transactions that cover multiple queues may be non-atomic,\ngiven that queues can be created and destroyed asynchronously, and such events do not\nform part of any transaction. Further, the behaviour of transactions with respect to the\nimmediate and mandatory flags on Basic.Publish methods is not defined.\n\n\n| Param | Type | Description |\n| --- | --- | --- |\n| client | \u003ccode\u003eBRAMQPClient\u003c/code\u003e | Client object that returns from bramqp#openAMQPCommunication() method. |\n| channel | \u003ccode\u003e[Channel](#Channel)\u003c/code\u003e | Channel object (should be opened). |\n\n\u003ca name=\"TX+select\"\u003e\u003c/a\u003e\n### tX.select(callback)\nSelect standard transaction mode.\nThis method sets the channel to use standard transactions.\nThe client must use this method at least once on a channel before using the Commit or\nRollback methods.\n\n**Kind**: instance method of \u003ccode\u003e[TX](#TX)\u003c/code\u003e  \n\n| Param | Type |\n| --- | --- |\n| callback | \u003ccode\u003efunction\u003c/code\u003e | \n\n\u003ca name=\"TX+commit\"\u003e\u003c/a\u003e\n### tX.commit(callback)\nCommit the current transaction.\n\nThis method commits all message publications and acknowledgments performed in the current\ntransaction. A new transaction starts immediately after a commit.\n* The client MUST NOT use the Commit method on non-transacted channels.\nError code: precondition-failed\n\n**Kind**: instance method of \u003ccode\u003e[TX](#TX)\u003c/code\u003e  \n\n| Param | Type |\n| --- | --- |\n| callback | \u003ccode\u003efunction\u003c/code\u003e | \n\n\u003ca name=\"TX+rollback\"\u003e\u003c/a\u003e\n### tX.rollback(callback)\nAbandon the current transaction.\n\nThis method abandons all message publications and acknowledgments performed\nin the current transaction. A new transaction starts immediately after a rollback.\nNote that unacked messages will not be automatically redelivered by rollback;\nif that is required an explicit recover call should be issued.\n* The client MUST NOT use the Rollback method on non-transacted channels.\nError code: precondition-failed\n\n**Kind**: instance method of \u003ccode\u003e[TX](#TX)\u003c/code\u003e  \n\n| Param |\n| --- |\n| callback | \n\n\n\n\n\n\n# LICENSE - \"MIT License\"\n\nCopyright (c) 2015 Konstantine Petryaev\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumminorihsf%2Fbramqp-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnumminorihsf%2Fbramqp-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumminorihsf%2Fbramqp-wrapper/lists"}