The default webSocket port is different from the location's port #3011
Closed
Description
Describe the bug
The webSocket's default port would be 3000, the same as the location's port, and that's ok.
When I use Charles to rewrite online link to local link for development, the webSocket's port remains 3000, that's not
convenient.
For example, the online link is http://www.test.com and the local link is http://localhost:3000
When I rewrite http://www.test.com to http://localhost:3000, the webSocket's port remains 3000, different from webpack dev server.
The webSocket's url would be ws://www.test.com:3000/ and it can't be proxied by Charles.
I think the default port should be 80 when I visit http://www.test.com and 443 while visiting https://www.test.com