{"action":"closed","issue":{"url":"https://api.github.com/repos/retupmoca/P6-Net-AMQP/issues/9","labels_url":"https://api.github.com/repos/retupmoca/P6-Net-AMQP/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/retupmoca/P6-Net-AMQP/issues/9/comments","events_url":"https://api.github.com/repos/retupmoca/P6-Net-AMQP/issues/9/events","html_url":"https://github.com/retupmoca/P6-Net-AMQP/issues/9","id":127484330,"number":9,"title":"Do something when broker closes the channel","user":{"login":"jonathanstowe","id":736419,"avatar_url":"https://avatars.githubusercontent.com/u/736419?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanstowe","html_url":"https://github.com/jonathanstowe","followers_url":"https://api.github.com/users/jonathanstowe/followers","following_url":"https://api.github.com/users/jonathanstowe/following{/other_user}","gists_url":"https://api.github.com/users/jonathanstowe/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanstowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanstowe/subscriptions","organizations_url":"https://api.github.com/users/jonathanstowe/orgs","repos_url":"https://api.github.com/users/jonathanstowe/repos","events_url":"https://api.github.com/users/jonathanstowe/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanstowe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-19T16:27:26Z","updated_at":"2016-01-19T19:58:49Z","closed_at":"2016-01-19T19:58:49Z","body":"Currently if the broker closes the channel for some reason (client error or something,)  the \"channel.close-ok\" method is not acted upon, but no further messages will be received so potentially a client could be left hanging on a promise that will never be kept or waiting to process messages that will never be received.\r\n\r\nI noticed this when testing 'ack' which doesn't appear to work in the case where the publisher and consumer are running in the same process.\r\n\r\nI think this may be best served by simply having a \"closed\" Promise on Channel that is kept when it is closed somehow."}}