diff --git a/lib/Server.js b/lib/Server.js index b74614ea15..6fe00da346 100644 --- a/lib/Server.js +++ b/lib/Server.js @@ -1187,8 +1187,7 @@ class Server { // Proxy WebSocket without the initial http request // https://github.com/chimurai/http-proxy-middleware#external-websocket-upgrade - // eslint-disable-next-line func-names - this.webSocketProxies.forEach(function (webSocketProxy) { + this.webSocketProxies.forEach((webSocketProxy) => { this.server.on("upgrade", webSocketProxy.upgrade); }, this); }