Skip to content

Commit

Permalink
webpackHotDev now uses wss when https is used (facebook#8079)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecaulley authored and NewFuture committed Dec 5, 2019
1 parent 9acbb76 commit b8c1c0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-dev-utils/webpackHotDevClient.js
Expand Up @@ -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
Expand Down

0 comments on commit b8c1c0f

Please sign in to comment.