{"action":"opened","issue":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/709","repository_url":"https://api.github.com/repos/webpack/webpack-dev-server","labels_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/709/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/709/comments","events_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/709/events","html_url":"https://github.com/webpack/webpack-dev-server/issues/709","id":192006009,"number":709,"title":"Is there a way to send hot updates through Unix socket?","user":{"login":"everthis","id":3142886,"avatar_url":"https://avatars.githubusercontent.com/u/3142886?v=3","gravatar_id":"","url":"https://api.github.com/users/everthis","html_url":"https://github.com/everthis","followers_url":"https://api.github.com/users/everthis/followers","following_url":"https://api.github.com/users/everthis/following{/other_user}","gists_url":"https://api.github.com/users/everthis/gists{/gist_id}","starred_url":"https://api.github.com/users/everthis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everthis/subscriptions","organizations_url":"https://api.github.com/users/everthis/orgs","repos_url":"https://api.github.com/users/everthis/repos","events_url":"https://api.github.com/users/everthis/events{/privacy}","received_events_url":"https://api.github.com/users/everthis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-28T13:28:39Z","updated_at":"2016-11-28T13:28:39Z","closed_at":null,"body":"version: `2.1.0-beta.12`\r\n\r\nuse case: \r\n\r\n   Webpack-dev-server runs on remote machine and cooperate with remote backend server(the backend server has been bound to unix socket ), And the entry of the whole webapp is something like this `http://10.0.0.9:8678`.\r\n I noticed that the `2.1.0-beta.12` version `webpack-dev-server` can serve bundles through Unix socket with CLI like this `--socket shared/sockets/webpack.sock` , but the HMR part will need to set host and port.\r\nIf I leave the HMR configuration part as defaults, It will send request like this:\r\n```\r\nhttp://localhost/sockjs-node/info?t=1480337410648\r\n```\r\n,which won't work since the server is  `http://10.0.0.9:8678` and not `http://localhost`\r\n\r\nI can set the HMR part like this `webpack-dev-server/client?http://0.0.0.0:8679` and do some server configuration to eliminate the CORS error. But this is not elegant.\r\n\r\nIs there a way to bind the HMR to unix socket so that there is no need to set host and post and do CORS server config?\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"everthis"}}