Compare commits
No commits in common. "arnost/disconnecting-event" and "master" have entirely different histories.
arnost/dis
...
master
@ -80,7 +80,7 @@ try {
|
|||||||
|
|
||||||
socket.on("disconnecting", async () => {
|
socket.on("disconnecting", async () => {
|
||||||
socketDebug(`${socket.id} has disconnected`);
|
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(
|
const otherClients = (await io.in(roomID).fetchSockets()).filter(
|
||||||
(_socket) => _socket.id !== socket.id,
|
(_socket) => _socket.id !== socket.id,
|
||||||
);
|
);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es2020",
|
"target": "es5",
|
||||||
"lib": ["dom", "dom.iterable", "esnext"],
|
"lib": ["dom", "dom.iterable", "esnext"],
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user