{"action":"created","issue":{"url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/1190","repository_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware","labels_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/1190/labels{/name}","comments_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/1190/comments","events_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/1190/events","html_url":"https://github.com/nodemcu/nodemcu-firmware/pull/1190","id":143600483,"number":1190,"title":"Add example for socket:send()","user":{"login":"marcelstoer","id":624195,"avatar_url":"https://avatars.githubusercontent.com/u/624195?v=3","gravatar_id":"","url":"https://api.github.com/users/marcelstoer","html_url":"https://github.com/marcelstoer","followers_url":"https://api.github.com/users/marcelstoer/followers","following_url":"https://api.github.com/users/marcelstoer/following{/other_user}","gists_url":"https://api.github.com/users/marcelstoer/gists{/gist_id}","starred_url":"https://api.github.com/users/marcelstoer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcelstoer/subscriptions","organizations_url":"https://api.github.com/users/marcelstoer/orgs","repos_url":"https://api.github.com/users/marcelstoer/repos","events_url":"https://api.github.com/users/marcelstoer/events{/privacy}","received_events_url":"https://api.github.com/users/marcelstoer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-25T21:16:40Z","updated_at":"2016-03-26T15:30:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/pulls/1190","html_url":"https://github.com/nodemcu/nodemcu-firmware/pull/1190","diff_url":"https://github.com/nodemcu/nodemcu-firmware/pull/1190.diff","patch_url":"https://github.com/nodemcu/nodemcu-firmware/pull/1190.patch"},"body":"Contributes to #730"},"comment":{"url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/comments/201859891","html_url":"https://github.com/nodemcu/nodemcu-firmware/pull/1190#issuecomment-201859891","issue_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/1190","id":201859891,"user":{"login":"marcelstoer","id":624195,"avatar_url":"https://avatars.githubusercontent.com/u/624195?v=3","gravatar_id":"","url":"https://api.github.com/users/marcelstoer","html_url":"https://github.com/marcelstoer","followers_url":"https://api.github.com/users/marcelstoer/followers","following_url":"https://api.github.com/users/marcelstoer/following{/other_user}","gists_url":"https://api.github.com/users/marcelstoer/gists{/gist_id}","starred_url":"https://api.github.com/users/marcelstoer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcelstoer/subscriptions","organizations_url":"https://api.github.com/users/marcelstoer/orgs","repos_url":"https://api.github.com/users/marcelstoer/repos","events_url":"https://api.github.com/users/marcelstoer/events{/privacy}","received_events_url":"https://api.github.com/users/marcelstoer/received_events","type":"User","site_admin":false},"created_at":"2016-03-26T15:30:07Z","updated_at":"2016-03-26T15:30:07Z","body":"> I also think that this example is getting far too complicated for an inline example in the documentation. If we start doing this then the documentation just bloats too much.\r\n\r\nTrue, we agreed a long time ago that full-blown examples should be kept away from the docs and I (still) fully support that. IMO this doesn't qualify as a full-blown example. Furthermore, the note about \"Multiple consecutive `send()` calls\" is a good hint but you probably also noticed how much that still seems to be an issue for many developers. If a code example can help avoid GitHub issues, SO questions and forum posts then its existence is justified.\r\n\r\n> Having said that the current http_server example is just terrible.\r\n\r\n-> #1196\r\n\r\n> Sigh!!! Just so much to do. :cry:\r\n\r\nDon't lose heart! No need to look at whole pile of issues. We'll fix one at the time :smile:."}}