function checkRoomCount(user) {
        let data = user
        // error prevention
        if (!io.sockets.adapter.rooms.get(data.room)) {
            // delete empty room
            deleteRoom(data.room)
        }
    }
// ----------------------------------------------------------------------------------------------- Checks amount of users in room
Checks amount of users in room
Checks amount of users in room
function checkRoomCount(user) {
        let data = user
        if (!io.sockets.adapter.rooms.get(data.room)) {
            deleteRoom(data.room)
        }
    }
function checkRoomCount ( user ) { let data = user if ( ! io . sockets . adapter . rooms . get ( data . room ) ) { deleteRoom ( data . room ) } }
Checks amount of users in room
Checks amount of users in room
// error prevention // delete empty room