We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6196876 commit 3762c78Copy full SHA for 3762c78
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