From 25d4faddd985582ec17a3a081e4d9237bb05ef46 Mon Sep 17 00:00:00 2001 From: John McLear Date: Sun, 21 Feb 2021 19:54:32 +0000 Subject: [PATCH] lint: SocketIORouter.js --- src/node/handler/SocketIORouter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node/handler/SocketIORouter.js b/src/node/handler/SocketIORouter.js index 35325c072..cad53d173 100644 --- a/src/node/handler/SocketIORouter.js +++ b/src/node/handler/SocketIORouter.js @@ -60,7 +60,7 @@ exports.setSocketIO = (_socket) => { }; // tell all components about this connect - for (const i in components) { + for (const i of Object.keys(components)) { components[i].handleConnect(client); } @@ -84,7 +84,7 @@ exports.setSocketIO = (_socket) => { // this instance can be brought out of a scaling cluster. stats.gauge('lastDisconnect', () => Date.now()); // tell all components about this disconnect - for (const i in components) { + for (const i of Object.keys(components)) { components[i].handleDisconnect(client); } });