{"issue":{"state":"open","created_at":"2011-11-23T09:07:22Z","updated_at":"2011-11-23T09:07:22Z","user":{"gravatar_id":"4bd2b5c3cd12ceaa6a42cb683d4d75b1","id":591,"url":"https://api.github.com/users/fd","login":"fd","avatar_url":"https://secure.gravatar.com/avatar/4bd2b5c3cd12ceaa6a42cb683d4d75b1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":0,"body":"\r\n```ruby\r\nrequire 'faye'\r\nrequire 'eventmachine'\r\n\r\nFaye::Logging.log_level = :debug\r\n\r\nEM.run do\r\n\r\n  client = Faye::Client.new('http://localhost:3000/faye')\r\n  \r\n  client.subscribe('/foo') do |message|\r\n    p message\r\n    client.disconnect\r\n  end\r\n\r\n  client.bind 'transport:down' do\r\n    puts \"[CONNECTION DOWN]\"\r\n    EM.stop\r\n  end\r\n  \r\n  client.bind 'transport:up' do\r\n    puts \"[CONNECTION UP]\"\r\n    client.publish('/foo', 'text' => 'Hello world')\r\n  end\r\n  \r\nend\r\n```","assignee":null,"id":2327743,"labels":[],"number":112,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"transport:down doesn't get triggered when a client explicitly disconnects","closed_at":null,"html_url":"https://github.com/jcoglan/faye/issues/112","milestone":null,"url":"https://api.github.com/repos/jcoglan/faye/issues/112"},"action":"opened"}