lint: SocketIORouter.js

pull/4842/head
John McLear 2021-02-21 19:54:32 +00:00 committed by Richard Hansen
parent 5201cb717f
commit 25d4faddd9
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
});