{"action":"created","issue":{"url":"https://api.github.com/repos/me-no-dev/ESPAsyncWebServer/issues/170","repository_url":"https://api.github.com/repos/me-no-dev/ESPAsyncWebServer","labels_url":"https://api.github.com/repos/me-no-dev/ESPAsyncWebServer/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/me-no-dev/ESPAsyncWebServer/issues/170/comments","events_url":"https://api.github.com/repos/me-no-dev/ESPAsyncWebServer/issues/170/events","html_url":"https://github.com/me-no-dev/ESPAsyncWebServer/issues/170","id":229829180,"number":170,"title":"beginChunkedResponse won't tell when client disconnected","user":{"login":"aguaviva","id":5200915,"avatar_url":"https://avatars1.githubusercontent.com/u/5200915?v=3","gravatar_id":"","url":"https://api.github.com/users/aguaviva","html_url":"https://github.com/aguaviva","followers_url":"https://api.github.com/users/aguaviva/followers","following_url":"https://api.github.com/users/aguaviva/following{/other_user}","gists_url":"https://api.github.com/users/aguaviva/gists{/gist_id}","starred_url":"https://api.github.com/users/aguaviva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aguaviva/subscriptions","organizations_url":"https://api.github.com/users/aguaviva/orgs","repos_url":"https://api.github.com/users/aguaviva/repos","events_url":"https://api.github.com/users/aguaviva/events{/privacy}","received_events_url":"https://api.github.com/users/aguaviva/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-18T23:10:22Z","updated_at":"2017-05-19T09:24:40Z","closed_at":"2017-05-19T06:42:42Z","body":"In the following code, how do I know when the client disconnected? Apparently there is no way to know that.\r\n```\r\nAsyncWebServerResponse *response = request->beginChunkedResponse(\"application/octet-stream\", [&response](uint8_t *buffer, size_t maxLen, size_t index) -> size_t\r\n{\r\n    memcpy((char*)buffer, \"hola\",4);\r\n    return 4;\r\n});\r\nresponse->addHeader(\"Server\",\"ESP Async Web Server\");\r\nrequest->send(response);```"},"comment":{"url":"https://api.github.com/repos/me-no-dev/ESPAsyncWebServer/issues/comments/302654316","html_url":"https://github.com/me-no-dev/ESPAsyncWebServer/issues/170#issuecomment-302654316","issue_url":"https://api.github.com/repos/me-no-dev/ESPAsyncWebServer/issues/170","id":302654316,"user":{"login":"aguaviva","id":5200915,"avatar_url":"https://avatars1.githubusercontent.com/u/5200915?v=3","gravatar_id":"","url":"https://api.github.com/users/aguaviva","html_url":"https://github.com/aguaviva","followers_url":"https://api.github.com/users/aguaviva/followers","following_url":"https://api.github.com/users/aguaviva/following{/other_user}","gists_url":"https://api.github.com/users/aguaviva/gists{/gist_id}","starred_url":"https://api.github.com/users/aguaviva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aguaviva/subscriptions","organizations_url":"https://api.github.com/users/aguaviva/orgs","repos_url":"https://api.github.com/users/aguaviva/repos","events_url":"https://api.github.com/users/aguaviva/events{/privacy}","received_events_url":"https://api.github.com/users/aguaviva/received_events","type":"User","site_admin":false},"created_at":"2017-05-19T09:24:40Z","updated_at":"2017-05-19T09:24:40Z","body":"right, that is if the server wants to stop the transmission, but in the case where the client disconnects, how do you know that in that function? is there any way to check for that?"}}
{"actor":{"display_login":"aguaviva"}}