{"action":"created","issue":{"url":"https://api.github.com/repos/transcovo/node-amqp-bus/issues/3","repository_url":"https://api.github.com/repos/transcovo/node-amqp-bus","labels_url":"https://api.github.com/repos/transcovo/node-amqp-bus/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/transcovo/node-amqp-bus/issues/3/comments","events_url":"https://api.github.com/repos/transcovo/node-amqp-bus/issues/3/events","html_url":"https://github.com/transcovo/node-amqp-bus/pull/3","id":137543437,"number":3,"title":"Add new methods to the client.","user":{"login":"ltbesh-cp","id":17157428,"avatar_url":"https://avatars.githubusercontent.com/u/17157428?v=3","gravatar_id":"","url":"https://api.github.com/users/ltbesh-cp","html_url":"https://github.com/ltbesh-cp","followers_url":"https://api.github.com/users/ltbesh-cp/followers","following_url":"https://api.github.com/users/ltbesh-cp/following{/other_user}","gists_url":"https://api.github.com/users/ltbesh-cp/gists{/gist_id}","starred_url":"https://api.github.com/users/ltbesh-cp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltbesh-cp/subscriptions","organizations_url":"https://api.github.com/users/ltbesh-cp/orgs","repos_url":"https://api.github.com/users/ltbesh-cp/repos","events_url":"https://api.github.com/users/ltbesh-cp/events{/privacy}","received_events_url":"https://api.github.com/users/ltbesh-cp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ygotthilf","id":1472455,"avatar_url":"https://avatars.githubusercontent.com/u/1472455?v=3","gravatar_id":"","url":"https://api.github.com/users/ygotthilf","html_url":"https://github.com/ygotthilf","followers_url":"https://api.github.com/users/ygotthilf/followers","following_url":"https://api.github.com/users/ygotthilf/following{/other_user}","gists_url":"https://api.github.com/users/ygotthilf/gists{/gist_id}","starred_url":"https://api.github.com/users/ygotthilf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ygotthilf/subscriptions","organizations_url":"https://api.github.com/users/ygotthilf/orgs","repos_url":"https://api.github.com/users/ygotthilf/repos","events_url":"https://api.github.com/users/ygotthilf/events{/privacy}","received_events_url":"https://api.github.com/users/ygotthilf/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-03-01T11:11:24Z","updated_at":"2016-03-01T13:06:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/transcovo/node-amqp-bus/pulls/3","html_url":"https://github.com/transcovo/node-amqp-bus/pull/3","diff_url":"https://github.com/transcovo/node-amqp-bus/pull/3.diff","patch_url":"https://github.com/transcovo/node-amqp-bus/pull/3.patch"},"body":"The main changes are:\r\n- The publish method require an exchange as first argument.\r\n- The listen method require an exchange as first argument. It wraps the\r\n`setupQueue` and `consume` method in a single call\r\n- The close method reset the channel and connection attribute of the\r\nclient to `null`\r\n- The setupQueue method (NEW) Check that exchange and queue are created\r\nand bind exchange to queue with rooting key. It let you specify an\r\nexchange type which default to topic.\r\n- The consume method (NEW) pass messages to its handler and handle\r\nacknowledgement of messages."},"comment":{"url":"https://api.github.com/repos/transcovo/node-amqp-bus/issues/comments/190716500","html_url":"https://github.com/transcovo/node-amqp-bus/pull/3#issuecomment-190716500","issue_url":"https://api.github.com/repos/transcovo/node-amqp-bus/issues/3","id":190716500,"user":{"login":"ygotthilf","id":1472455,"avatar_url":"https://avatars.githubusercontent.com/u/1472455?v=3","gravatar_id":"","url":"https://api.github.com/users/ygotthilf","html_url":"https://github.com/ygotthilf","followers_url":"https://api.github.com/users/ygotthilf/followers","following_url":"https://api.github.com/users/ygotthilf/following{/other_user}","gists_url":"https://api.github.com/users/ygotthilf/gists{/gist_id}","starred_url":"https://api.github.com/users/ygotthilf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ygotthilf/subscriptions","organizations_url":"https://api.github.com/users/ygotthilf/orgs","repos_url":"https://api.github.com/users/ygotthilf/repos","events_url":"https://api.github.com/users/ygotthilf/events{/privacy}","received_events_url":"https://api.github.com/users/ygotthilf/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T13:06:55Z","updated_at":"2016-03-01T13:06:55Z","body":"Je n'aime pas du tout l'utilisation du this dans des functions. Je trouve ça dangereux car on est jamais sur du context parent.\r\n\r\nSoit je ferai un prototype, soit je retirai les this. Mais je ne ferai pas une version intermédiaire comme cela.  "}}