We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48f56d5 commit 975c719Copy full SHA for 975c719
1 file changed
lib/servers/WebsocketServer.js
@@ -95,6 +95,17 @@ module.exports = class WebsocketServer extends BaseServer {
95
client.on("close", () => {
96
this.clients.splice(this.clients.indexOf(client), 1);
97
});
98
+
99
+ // TODO: add a test case for this - https://github.com/webpack/webpack-dev-server/issues/5018
100
+ client.on(
101
+ "error",
102
+ /**
103
+ * @param {Error} err
104
+ */
105
+ (err) => {
106
+ this.server.logger.error(err.message);
107
+ },
108
+ );
109
},
110
);
111
0 commit comments