We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9acbb76 commit b8c1c0fCopy full SHA for b8c1c0f
packages/react-dev-utils/webpackHotDevClient.js
@@ -59,7 +59,7 @@ if (module.hot && typeof module.hot.dispose === 'function') {
59
// Connect to WebpackDevServer via a socket.
60
var connection = new WebSocket(
61
url.format({
62
- protocol: 'ws',
+ protocol: window.location.protocol === 'https:' ? 'wss' : 'ws',
63
hostname: window.location.hostname,
64
port: window.location.port,
65
// Hardcoded in WebpackDevServer
0 commit comments