react-dev-utils/webpackHotDevClient - SockJS - non-customisable host and port
See original GitHub issueHello.
I have a question about the react-dev-utils/webpackHotDevClient
.
SockJS there (see https://github.com/facebookincubator/create-react-app/blob/next/packages/react-dev-utils/webpackHotDevClient.js#L64) is instantiated with not customized host and port but with the corresponding parameters of the original window.
Is it intended and/or are there any strict contraindications against customizing host and port?
If yes, what’s the explanation? If not, would it make sense if I handle this issue and make a PR?
Thank you!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tharakawj Thank you for reaction. I do understand what happens on those lines.
Of course I know about this option, and I even use it, but imagine that I have another application which should be able to talk to the webpack dev server. Say, webpack dev server is available by
localhost:3000
and I have, for example,anotherapp.local
, and I wantanotherapp.local
to talk to the running webpack dev server, with hot replacement and all that useful things. With the current implementation, if works pretty fine until the moment Sock tries to connect to dev server - instead of establishing connection withlocalhost:3000
, it triesws://anotherapp.local
and, of course, fails.So why exactly not to customize the parameters?
+1