{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/196","repository_url":"https://api.github.com/repos/webpack/webpack-dev-server","labels_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/196/comments","events_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/196/events","html_url":"https://github.com/webpack/webpack-dev-server/pull/196","id":88489705,"number":196,"title":"Proof of concept: send hot updates via sockets","user":{"login":"gaearon","id":810438,"avatar_url":"https://avatars.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2015-06-15T17:27:28Z","updated_at":"2016-08-31T13:01:38Z","closed_at":"2016-08-31T12:38:30Z","pull_request":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/pulls/196","html_url":"https://github.com/webpack/webpack-dev-server/pull/196","diff_url":"https://github.com/webpack/webpack-dev-server/pull/196.diff","patch_url":"https://github.com/webpack/webpack-dev-server/pull/196.patch"},"body":"I know this is pretty ridiculous with reading from `window` but that's not the point. It's just a proof of concept.\r\n\r\nThis PR works in conjunction with [this PR to Webpack](https://github.com/webpack/webpack/pull/1173).\r\n\r\nIt embeds small hot updates right into the socket response so that the client doesn't need to do any further requests. This saves some roundtrip time and, most importantly, lets the client go on without asking the server *while the server is performing the second pass* in `multiPass` mode. That's where the real savings are.\r\n\r\nThis cuts hot reload time (from “save” to seeing the changes) from 1500ms to 700ms on my machine.\r\n\r\nI don't ask this to be merged, but I wonder if something like this makes sense for a future version. Making hot reload faster is important as it saves the brain cycles."},"comment":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/comments/243756262","html_url":"https://github.com/webpack/webpack-dev-server/pull/196#issuecomment-243756262","issue_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/196","id":243756262,"user":{"login":"gaearon","id":810438,"avatar_url":"https://avatars.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T13:01:38Z","updated_at":"2016-08-31T13:01:38Z","body":"👍 Thanks"}}
{"actor":{"display_login":"gaearon"}}