Skip to content

Commit 3762c78

Browse files
mikecaulleyjoeycozza
authored andcommitted
webpackHotDev now uses wss when https is used (facebook#8079)
1 parent 6196876 commit 3762c78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-dev-utils/webpackHotDevClient.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if (module.hot && typeof module.hot.dispose === 'function') {
5959
// Connect to WebpackDevServer via a socket.
6060
var connection = new WebSocket(
6161
url.format({
62-
protocol: 'ws',
62+
protocol: window.location.protocol === 'https:' ? 'wss' : 'ws',
6363
hostname: window.location.hostname,
6464
port: window.location.port,
6565
// Hardcoded in WebpackDevServer

0 commit comments

Comments
 (0)