mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-12 22:46:30 +08:00
webpackHotDev now uses wss when https is used (#8079)
This commit is contained in:
committed by
Ian Schmitz
parent
9a817dd0d7
commit
9f4cb4f0c0
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user