// Connect to WebpackDevServer via a socket.var connection =url;
As you can see in the above code, the sockJS implementation is Hard Coded in the code, that's mean that you can't add prefix to your development hmr socket.
if you will try to use your app with prerix for example
it's not gonna work, no metter how hard you will try.
react-utils-hmr-prefix will help you to accomplish the above with minimum changes.
npm i react-utils-hmr-prefix -D
- use eject (link)
require // this line should be change to the line belowrequire
PUBLIC_URL: publicUrlSOCK_JS_PREFIX: 'myCustomPrefix' //add this line to the file with your prefix
<!-- add this line into your head tag -->
Those actions will create socket on yout origin + the custom prefix, for example