Compare commits

..

2 Commits

Author SHA1 Message Date
Arnošt Pleskot
d8173c0824
chore: remove braces from filter function 2023-07-13 14:43:16 +02:00
Arnošt Pleskot
1ed0fe035a
fix: for..of in disconnecting event 2023-07-13 14:09:30 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ try {
socket.on("disconnecting", async () => {
socketDebug(`${socket.id} has disconnected`);
for (const roomID in socket.rooms) {
for (const roomID of socket.rooms) {
const otherClients = (await io.in(roomID).fetchSockets()).filter(
(_socket) => _socket.id !== socket.id,
);

View File

@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es5",
"target": "es2020",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,