Compare commits

..

No commits in common. "arnost/disconnecting-event" and "master" have entirely different histories.

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 of socket.rooms) {
for (const roomID in socket.rooms) {
const otherClients = (await io.in(roomID).fetchSockets()).filter(
(_socket) => _socket.id !== socket.id,
);

View File

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