mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
lint: SocketIORouter.js
This commit is contained in:
parent
5201cb717f
commit
25d4faddd9
1 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ exports.setSocketIO = (_socket) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
// tell all components about this connect
|
// tell all components about this connect
|
||||||
for (const i in components) {
|
for (const i of Object.keys(components)) {
|
||||||
components[i].handleConnect(client);
|
components[i].handleConnect(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ exports.setSocketIO = (_socket) => {
|
||||||
// this instance can be brought out of a scaling cluster.
|
// this instance can be brought out of a scaling cluster.
|
||||||
stats.gauge('lastDisconnect', () => Date.now());
|
stats.gauge('lastDisconnect', () => Date.now());
|
||||||
// tell all components about this disconnect
|
// tell all components about this disconnect
|
||||||
for (const i in components) {
|
for (const i of Object.keys(components)) {
|
||||||
components[i].handleDisconnect(client);
|
components[i].handleDisconnect(client);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue