Closed
Description
- Operating System: Windows 10
- Node Version: 12.8.1
- NPM Version: 6.10.3
- webpack Version: 4.39.2
- webpack-dev-server Version: since 3.5.0
- Browser: Chrome 76
- This is a bug
- This is a modification request
Expected Behavior
connection
should not be null
Actual Behavior
TypeError: Cannot read property 'headers' of null at Server.socket.on (***/node_modules/webpack-dev-server/lib/servers/SockJSServer.js:68:32)
For Bugs; How can we reproduce the behavior?
This bug is difficult to reproduce. It happens occasionally.
webpack-dev-server/lib/servers/SockJSServer.js
Lines 65 to 69 in 2d44ef8
line 67 should become
if (connection) {
f(connection, connection.headers)
}
For Features; What is the motivation and/or use-case for the feature?
Metadata
Metadata
Assignees
Labels
No labels