1

I have a Node.js server using Express

const socketio      = require('socket.io'),
      http          = require('http'),
      path          = require('path'),
      express       = require('express'),
      app           = express(),
      serv          = require('http').Server(app),
      cors          = require('cors');

var htmlPath = path.join(__dirname, 'client_data');
    
app.use(cors(corsOptions), express.static(htmlPath));
app.get('/', cors(corsOptions), (req, res, next) => {
    res.sendFile(htmlPath + '/index.html');
});

Client connects via

function init() {
    var url = 'http://192.168.1.5:8080';
    window.open(url, 'theFrame');
}

I'm trying to add a Download Progress Bar for the client side (also, for server side would be nice) for the files retrieved via Express. Is this possible? Thanks!

Vardan Betikyan
  • 354
  • 5
  • 20

0 Answers0