From 76a5949a83ff579a21ebfe86bdd830692ce44da5 Mon Sep 17 00:00:00 2001 From: Mike Caulley Date: Wed, 4 Dec 2019 21:39:45 -0800 Subject: [PATCH] Update webpackHotDevClient.js --- packages/react-dev-utils/webpackHotDevClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-dev-utils/webpackHotDevClient.js b/packages/react-dev-utils/webpackHotDevClient.js index fb515f01f4a..2343d370e4f 100644 --- a/packages/react-dev-utils/webpackHotDevClient.js +++ b/packages/react-dev-utils/webpackHotDevClient.js @@ -59,7 +59,7 @@ if (module.hot && typeof module.hot.dispose === 'function') { // Connect to WebpackDevServer via a socket. var connection = new WebSocket( url.format({ - protocol: 'ws', + protocol: window.location.protocol === 'https' ? 'wss' : 'ws', hostname: window.location.hostname, port: window.location.port, // Hardcoded in WebpackDevServer